[FFmpeg-cvslog] avformat/utils: provide more IO statistics in debug output at start and end of av_find_streaminfo ()

Michael Niedermayer git at videolan.org
Thu Dec 5 18:04:41 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec  5 16:06:24 2013 +0100| [dc1b0a54f9fe498c6d30fefe582b73844636ef07] | committer: Michael Niedermayer

avformat/utils: provide more IO statistics in debug output at start and end of av_find_streaminfo()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc1b0a54f9fe498c6d30fefe582b73844636ef07
---

 libavformat/utils.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 00ad8a6..4a8b5f8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2712,7 +2712,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
     int flush_codecs = ic->probesize > 0;
 
     if(ic->pb)
-        av_log(ic, AV_LOG_DEBUG, "File position before avformat_find_stream_info() is %"PRId64"\n", avio_tell(ic->pb));
+        av_log(ic, AV_LOG_DEBUG, "Before avformat_find_stream_info() pos: %"PRId64" bytes read:%"PRId64" seeks:%d\n",
+               avio_tell(ic->pb), ic->pb->bytes_read, ic->pb->seek_count);
 
     for(i=0;i<ic->nb_streams;i++) {
         const AVCodec *codec;
@@ -3139,7 +3140,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
         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));
+        av_log(ic, AV_LOG_DEBUG, "After avformat_find_stream_info() pos: %"PRId64" bytes read:%"PRId64" seeks:%d frames:%d\n",
+               avio_tell(ic->pb), ic->pb->bytes_read, ic->pb->seek_count, count);
     return ret;
 }
 



More information about the ffmpeg-cvslog mailing list