mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 11:39:49 +00:00
avformat/vqf: check a few more bits in probe
Fixes probetest failure The threshold is choosen so that a all printale ascii string will never be detected as vqf Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e1c7892013
commit
e3fc4481b6
@ -43,6 +43,9 @@ static int vqf_probe(AVProbeData *probe_packet)
|
||||
if (!memcmp(probe_packet->buf + 4, "00052200", 8))
|
||||
return AVPROBE_SCORE_MAX;
|
||||
|
||||
if (AV_RL32(probe_packet->buf + 12) > (1<<27))
|
||||
return AVPROBE_SCORE_EXTENSION/2;
|
||||
|
||||
return AVPROBE_SCORE_EXTENSION;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user