[FFmpeg-cvslog] avformat/dfa: check first frame offset in probe

Michael Niedermayer git at videolan.org
Mon Nov 11 19:40:34 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 11 18:11:43 2013 +0100| [bdab2421a540efc0593c87e6d247427a0a6e16bc] | committer: Michael Niedermayer

avformat/dfa: check first frame offset in probe

Fixes probetest failure

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdab2421a540efc0593c87e6d247427a0a6e16bc
---

 libavformat/dfa.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/dfa.c b/libavformat/dfa.c
index 12516af..9cd13e2 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;
 }
 



More information about the ffmpeg-cvslog mailing list