From 4cd25081390136c853c7fb5dc55fb53e5a388409 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 5 Aug 2007 02:17:06 +0000 Subject: fix misdetection of out.ac3 Originally committed as revision 9930 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mpeg.c') diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 1f2254db97..0f8270a4fc 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -74,7 +74,7 @@ static int mpegps_probe(AVProbeData *p) return AVPROBE_SCORE_MAX/2+2; // +1 for .mpg if((priv1 || vid || audio) && (priv1+vid+audio)*9 <= pspack*10) return AVPROBE_SCORE_MAX/2+2; // +1 for .mpg - if((!!vid ^ !!audio) && (audio+vid > 1) && !sys && !pspack) /* PES stream */ + if((!!vid ^ !!audio) && (audio+vid > 1) && !sys && !pspack && p->buf_size>2048) /* PES stream */ return AVPROBE_SCORE_MAX/2+2; //02-Penguin.flac has sys:0 priv1:0 pspack:0 vid:0 audio:1 -- cgit v1.2.3