From bdab2421a540efc0593c87e6d247427a0a6e16bc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 Nov 2013 18:11:43 +0100 Subject: [PATCH] avformat/dfa: check first frame offset in probe Fixes probetest failure Signed-off-by: Michael Niedermayer --- libavformat/dfa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/dfa.c b/libavformat/dfa.c index 12516afdc5..9cd13e24d9 100644 --- a/libavformat/dfa.c +++ b/libavformat/dfa.c @@ -28,6 +28,9 @@ static int dfa_probe(AVProbeData *p) if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A')) return 0; + if (AV_RL32(p->buf + 16) != 0x80) + return AVPROBE_SCORE_MAX / 4; + return AVPROBE_SCORE_MAX; }