From 6de5b627905134486438c033dde16537219ea898 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 8 Dec 2009 12:24:41 +0000 Subject: [PATCH] Also print the number of invalid packets in the debug output. Originally committed as revision 20763 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 817fe12cd1..c5afa1d1cb 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -76,7 +76,7 @@ static int mpegps_probe(AVProbeData *p) if(vid+audio > invalid) /* invalid VDR files nd short PES streams */ score= AVPROBE_SCORE_MAX/4; -//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d len:%d\n", sys, priv1, pspack,vid, audio, p->buf_size); +//av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d %d len:%d\n", sys, priv1, pspack,vid, audio, invalid, p->buf_size); if(sys>invalid && sys*9 <= pspack*10) return pspack > 2 ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4; // +1 for .mpg if(pspack > invalid && (priv1+vid+audio)*10 >= pspack*9)