[FFmpeg-cvslog] avformat/bethsoftvid: check 4th header byte in probe

Michael Niedermayer git at videolan.org
Mon Nov 11 17:59:45 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 11 17:26:03 2013 +0100| [f66f3819b96847cd28589b718dbcd03b782e7a5c] | committer: Michael Niedermayer

avformat/bethsoftvid: check 4th header byte 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=f66f3819b96847cd28589b718dbcd03b782e7a5c
---

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

diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c
index b8f08c1..6b84b79 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;
 }
 



More information about the ffmpeg-cvslog mailing list