[FFmpeg-cvslog] avformat/rsd: 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| [eb96802355ba69a604f49be41313cc162a7b4f4b] | committer: Michael Niedermayer

avformat/rsd: 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=eb96802355ba69a604f49be41313cc162a7b4f4b
---

 libavformat/rsd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rsd.c b/libavformat/rsd.c
index e9d2b79..341f638 100644
--- a/libavformat/rsd.c
+++ b/libavformat/rsd.c
@@ -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;
 }
 



More information about the ffmpeg-cvslog mailing list