avformat/rsd: 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:03 +0000 (13:37 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rsd.c

index e9d2b79..341f638 100644 (file)
@@ -46,9 +46,9 @@ static int rsd_probe(AVProbeData *p)
     if (memcmp(p->buf, "RSD", 3) || p->buf[3] - '0' < 2 || p->buf[3] - '0' > 6)
         return 0;
     if (AV_RL32(p->buf +  8) > 256 || !AV_RL32(p->buf +  8))
-        return 1;
+        return AVPROBE_SCORE_MAX / 8;
     if (AV_RL32(p->buf + 16) > 8*48000 || !AV_RL32(p->buf + 16))
-        return 1;
+        return AVPROBE_SCORE_MAX / 8;
     return AVPROBE_SCORE_MAX;
 }