Mercurial > libavformat.hg
changeset 5189:cfe130ee18f1 libavformat
Slightly stricter MPEG-PES probing, fixes issue 1383.
author | reimar |
---|---|
date | Tue, 15 Sep 2009 10:01:25 +0000 |
parents | 2a5cf64915b5 |
children | 4277da592002 |
files | mpeg.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Tue Sep 15 09:21:29 2009 +0000 +++ b/mpeg.c Tue Sep 15 10:01:25 2009 +0000 @@ -82,9 +82,10 @@ 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; }