Commit 023953e9 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/astdec: increase the score for odd samplerate/channels to max/8

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eb968023
...@@ -33,7 +33,7 @@ static int ast_probe(AVProbeData *p) ...@@ -33,7 +33,7 @@ static int ast_probe(AVProbeData *p)
if (!AV_RB16(p->buf + 10) || if (!AV_RB16(p->buf + 10) ||
!AV_RB16(p->buf + 12) || AV_RB16(p->buf + 12) > 256 || !AV_RB16(p->buf + 12) || AV_RB16(p->buf + 12) > 256 ||
!AV_RB32(p->buf + 16) || AV_RB32(p->buf + 16) > 8*48000) !AV_RB32(p->buf + 16) || AV_RB32(p->buf + 16) > 8*48000)
return 1; return AVPROBE_SCORE_MAX / 8;
return AVPROBE_SCORE_MAX / 3 * 2; return AVPROBE_SCORE_MAX / 3 * 2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment