diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-10 13:10:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-10 13:37:03 +0100 |
commit | eb96802355ba69a604f49be41313cc162a7b4f4b (patch) | |
tree | ef609621388734db37c02d25349708f2b8a69662 /libavformat | |
parent | ef28694d363faf54cbe3d15925232739a309d2d5 (diff) | |
download | ffmpeg-eb96802355ba69a604f49be41313cc162a7b4f4b.tar.gz |
avformat/rsd: increase the score for odd samplerate/channels to max/8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rsd.c b/libavformat/rsd.c index e9d2b79d46..341f638c77 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; } |