aboutsummaryrefslogtreecommitdiff
path: root/libavformat/vqf.c
diff options
context:
space:
mode:
authorMichael Niedermayer2013-11-12 22:26:34 +0100
committerMichael Niedermayer2013-11-13 01:36:09 +0100
commite3fc4481b6dd60acdb9f3e370ee9a1d1bd4ddd73 (patch)
tree157970e101dd152a83db73354008de44a98ccd1f /libavformat/vqf.c
parente1c7892013d2832df85dfef6368bd64e82547418 (diff)
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>
Diffstat (limited to 'libavformat/vqf.c')
-rw-r--r--libavformat/vqf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/vqf.c b/libavformat/vqf.c
index 4cd0a6deec..526b596146 100644
--- a/libavformat/vqf.c
+++ b/libavformat/vqf.c
@@ -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;
}