]> git.sesse.net Git - ffmpeg/commitdiff
avformat/astdec: increase the score for odd samplerate/channels to max/8
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Nov 2013 12:10:23 +0000 (13:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Nov 2013 12:37:06 +0000 (13:37 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/astdec.c

index 12252dcb67d7cfd5ac8ce639b2e2c30dddc8cb37..3fa26dccea08bf545c34bf3da7a1665bd6a882ee 100644 (file)
@@ -33,7 +33,7 @@ static int ast_probe(AVProbeData *p)
     if (!AV_RB16(p->buf + 10) ||
         !AV_RB16(p->buf + 12) || AV_RB16(p->buf + 12) > 256 ||
         !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;
 }