[FFmpeg-cvslog] r19860 - trunk/libavformat/vc1test.c

kostya subversion
Tue Sep 15 17:22:37 CEST 2009


Author: kostya
Date: Tue Sep 15 17:22:36 2009
New Revision: 19860

Log:
Make probing for VC1 test bitstream format stricter

Modified:
   trunk/libavformat/vc1test.c

Modified: trunk/libavformat/vc1test.c
==============================================================================
--- trunk/libavformat/vc1test.c	Tue Sep 15 17:06:04 2009	(r19859)
+++ trunk/libavformat/vc1test.c	Tue Sep 15 17:22:36 2009	(r19860)
@@ -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;



More information about the ffmpeg-cvslog mailing list