Skip to content

Commit dc1b0a5

Browse files
committed
avformat/utils: provide more IO statistics in debug output at start and end of av_find_streaminfo()
Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 6005ab3 commit dc1b0a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libavformat/utils.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
27122712
int flush_codecs = ic->probesize > 0;
27132713

27142714
if(ic->pb)
2715-
av_log(ic, AV_LOG_DEBUG, "File position before avformat_find_stream_info() is %"PRId64"\n", avio_tell(ic->pb));
2715+
av_log(ic, AV_LOG_DEBUG, "Before avformat_find_stream_info() pos: %"PRId64" bytes read:%"PRId64" seeks:%d\n",
2716+
avio_tell(ic->pb), ic->pb->bytes_read, ic->pb->seek_count);
27162717

27172718
for(i=0;i<ic->nb_streams;i++) {
27182719
const AVCodec *codec;
@@ -3139,7 +3140,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
31393140
av_freep(&ic->streams[i]->info);
31403141
}
31413142
if(ic->pb)
3142-
av_log(ic, AV_LOG_DEBUG, "File position after avformat_find_stream_info() is %"PRId64"\n", avio_tell(ic->pb));
3143+
av_log(ic, AV_LOG_DEBUG, "After avformat_find_stream_info() pos: %"PRId64" bytes read:%"PRId64" seeks:%d frames:%d\n",
3144+
avio_tell(ic->pb), ic->pb->bytes_read, ic->pb->seek_count, count);
31433145
return ret;
31443146
}
31453147

0 commit comments

Comments
 (0)