diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-11 18:11:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-11 19:38:38 +0100 |
commit | bdab2421a540efc0593c87e6d247427a0a6e16bc (patch) | |
tree | 8bb19f80c126f90902030398430164e23fdf1898 /libavformat/dfa.c | |
parent | f66f3819b96847cd28589b718dbcd03b782e7a5c (diff) | |
download | ffmpeg-bdab2421a540efc0593c87e6d247427a0a6e16bc.tar.gz |
avformat/dfa: check first frame offset in probe
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dfa.c')
-rw-r--r-- | libavformat/dfa.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |