[FFmpeg-cvslog] avformat/h264dec: Add ff_tlog() with trace information about h264 probing

Michael Niedermayer git at videolan.org
Sat May 30 04:10:47 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 30 03:57:20 2015 +0200| [aa9c6b6986eac8a44d7828a8653d4d015384b7da] | committer: Michael Niedermayer

avformat/h264dec: Add ff_tlog() with trace information about h264 probing

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

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

 libavformat/h264dec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c
index 4adc234..d1d37ca 100644
--- a/libavformat/h264dec.c
+++ b/libavformat/h264dec.c
@@ -21,6 +21,7 @@
 
 #include "avformat.h"
 #include "rawdec.h"
+#include "libavcodec/internal.h"
 
 static int h264_probe(AVProbeData *p)
 {
@@ -70,6 +71,7 @@ static int h264_probe(AVProbeData *p)
             }
         }
     }
+    ff_tlog(NULL, "sps:%d pps:%d idr:%d sli:%d res:%d\n", sps, pps, idr, sli, res);
 
     if (sps && pps && (idr || sli > 3) && res < (sps + pps + idr))
         return AVPROBE_SCORE_EXTENSION + 1;  // 1 more than .mpg



More information about the ffmpeg-cvslog mailing list