[FFmpeg-cvslog] avformat/mpeg: add commented out av_log() to probe

Michael Niedermayer git at videolan.org
Sat Dec 6 23:33:39 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec  6 22:38:38 2014 +0100| [74080ded9630f9492d9a382815502c141c146900] | committer: Michael Niedermayer

avformat/mpeg: add commented out av_log() to probe

This is commonly needed for debugging mis-detections

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

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

 libavformat/mpeg.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 8e1848c..9cf0bcb 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -102,6 +102,9 @@ static int mpegps_probe(AVProbeData *p)
     if (vid + audio > invalid + 1) /* invalid VDR files nd short PES streams */
         score = AVPROBE_SCORE_EXTENSION / 2;
 
+//     av_log(NULL, AV_LOG_ERROR, "vid:%d aud:%d sys:%d pspack:%d invalid:%d size:%d \n",
+//            vid, audio, sys, pspack, invalid, p->buf_size);
+
     if (sys > invalid && sys * 9 <= pspack * 10)
         return (audio > 12 || vid > 3 || pspack > 2) ? AVPROBE_SCORE_EXTENSION + 2
                                                      : AVPROBE_SCORE_EXTENSION / 2 + 1; // 1 more than mp3



More information about the ffmpeg-cvslog mailing list