Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
eb96802355
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/rsd.c

+ 2
- 2
libavformat/rsd.c View 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;
}



Loading…
Cancel
Save