From f66f3819b96847cd28589b718dbcd03b782e7a5c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 Nov 2013 17:26:03 +0100 Subject: [PATCH] avformat/bethsoftvid: check 4th header byte in probe Fixes probetest failure Signed-off-by: Michael Niedermayer --- libavformat/bethsoftvid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index b8f08c1f87..6b84b790f3 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -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; }