[FFmpeg-cvslog] avformat/astdec: increase the score for odd samplerate/channels to max/8

Michael Niedermayer git at videolan.org
Sun Nov 10 13:38:38 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 10 13:10:23 2013 +0100| [023953e96425a5fdff6b3904332ec621bb676b34] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=023953e96425a5fdff6b3904332ec621bb676b34
---

 libavformat/astdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/astdec.c b/libavformat/astdec.c
index 12252dc..3fa26dc 100644
--- a/libavformat/astdec.c
+++ b/libavformat/astdec.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list