[FFmpeg-cvslog] r19852 - trunk/libavformat/mpeg.c
reimar
subversion
Tue Sep 15 12:01:25 CEST 2009
Author: reimar
Date: Tue Sep 15 12:01:25 2009
New Revision: 19852
Log:
Slightly stricter MPEG-PES probing, fixes issue 1383.
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c Tue Sep 15 11:21:29 2009 (r19851)
+++ trunk/libavformat/mpeg.c Tue Sep 15 12:01:25 2009 (r19852)
@@ -82,9 +82,10 @@ static int mpegps_probe(AVProbeData *p)
if(priv1 + vid + audio > invalid && (priv1+vid+audio)*9 <= pspack*10)
return AVPROBE_SCORE_MAX/2+2; // +1 for .mpg
if((!!vid ^ !!audio) && (audio > 4 || vid > 1) && !sys && !pspack && p->buf_size>2048) /* PES stream */
- return AVPROBE_SCORE_MAX/2+2;
+ return (audio > 12 || vid > 3) ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;
//02-Penguin.flac has sys:0 priv1:0 pspack:0 vid:0 audio:1
+ //mp3_misidentified_2.mp3 has sys:0 priv1:0 pspack:0 vid:0 audio:6
return score;
}
More information about the ffmpeg-cvslog
mailing list