]> git.sesse.net Git - ffmpeg/commitdiff
avformat/vqf: check a few more bits in probe
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Nov 2013 21:26:34 +0000 (22:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Nov 2013 00:36:09 +0000 (01:36 +0100)
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>
libavformat/vqf.c

index 4cd0a6deec2d8059fe2d7a5b01fad355c452b957..526b5961461e1159df3613472b2d1cbf6c7ac6e2 100644 (file)
@@ -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;
 }