mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/rsd: increase the score for odd samplerate/channels to max/8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ef28694d36
commit
eb96802355
|
@ -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)
|
if (memcmp(p->buf, "RSD", 3) || p->buf[3] - '0' < 2 || p->buf[3] - '0' > 6)
|
||||||
return 0;
|
return 0;
|
||||||
if (AV_RL32(p->buf + 8) > 256 || !AV_RL32(p->buf + 8))
|
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))
|
if (AV_RL32(p->buf + 16) > 8*48000 || !AV_RL32(p->buf + 16))
|
||||||
return 1;
|
return AVPROBE_SCORE_MAX / 8;
|
||||||
return AVPROBE_SCORE_MAX;
|
return AVPROBE_SCORE_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue