Mercurial > libavformat.hg
changeset 2312:a8122196ad95 libavformat
fix misdetection of out.ac3
author | michael |
---|---|
date | Sun, 05 Aug 2007 02:17:06 +0000 |
parents | aac77d24706f |
children | 7f6e22803038 |
files | mpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Sun Aug 05 02:15:46 2007 +0000 +++ b/mpeg.c Sun Aug 05 02:17:06 2007 +0000 @@ -74,7 +74,7 @@ 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