summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-14 10:43:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-14 11:46:23 +0200
commit52ec269573c71b9cdd92907d51b7ba574daee325 (patch)
tree581bab9af657ad64d7cf2b88fd9d0aff4e810093 /libavformat
parentcca9528524c7a4b91451f4322bd50849af5d057e (diff)
lavf: print with debug level the byte positions before and after find_stream_info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 2f926bb4e0..875d0d84a8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2410,6 +2410,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
int orig_nb_streams = ic->nb_streams; // new streams might appear, no options for those
int flush_codecs = 1;
+ if(ic->pb)
+ av_log(ic, AV_LOG_DEBUG, "File position before avformat_find_stream_info() is %"PRId64"\n", avio_tell(ic->pb));
+
for(i=0;i<ic->nb_streams;i++) {
AVCodec *codec;
AVDictionary *thread_opt = NULL;
@@ -2723,6 +2726,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
ic->streams[i]->codec->thread_count = 0;
av_freep(&ic->streams[i]->info);
}
+ if(ic->pb)
+ av_log(ic, AV_LOG_DEBUG, "File position after avformat_find_stream_info() is %"PRId64"\n", avio_tell(ic->pb));
return ret;
}