[SCM] libav/experimental: Make probing for VC1 test bitstream format stricter

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:51:10 UTC 2013


The following commit has been merged in the experimental branch:
commit 23218a980170a7bad1e2359889fb1d8da73777e1
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Tue Sep 15 15:22:36 2009 +0000

    Make probing for VC1 test bitstream format stricter
    
    Originally committed as revision 19860 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c
index 861846c..f7ac984 100644
--- a/libavformat/vc1test.c
+++ b/libavformat/vc1test.c
@@ -33,7 +33,9 @@
 
 static int vc1t_probe(AVProbeData *p)
 {
-    if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4)
+    if (p->buf_size < 24)
+        return 0;
+    if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4 || AV_RL32(&p->buf[20]) != 0xC)
         return 0;
 
     return AVPROBE_SCORE_MAX/2;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list