aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-05 02:17:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-05 02:17:06 +0000
commit4cd25081390136c853c7fb5dc55fb53e5a388409 (patch)
treedd6a3238f930bc5300677af5588be4c151f17cd6 /libavformat
parent3504467f8b80bcd1645672f978f1c3e2b272c649 (diff)
downloadffmpeg-4cd25081390136c853c7fb5dc55fb53e5a388409.tar.gz
fix misdetection of out.ac3
Originally committed as revision 9930 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
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