avformat/bethsoftvid: check 4th header byte in probe
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Nov 2013 16:26:03 +0000 (17:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Nov 2013 16:50:51 +0000 (17:50 +0100)
Fixes probetest failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bethsoftvid.c

index b8f08c1..6b84b79 100644 (file)
@@ -61,6 +61,9 @@ static int vid_probe(AVProbeData *p)
     if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0))
         return 0;
 
+    if (p->buf[4] != 2)
+        return AVPROBE_SCORE_MAX / 4;
+
     return AVPROBE_SCORE_MAX;
 }