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

kostya subversion
Mon Sep 14 19:05:13 CEST 2009


Author: kostya
Date: Mon Sep 14 19:05:13 2009
New Revision: 19839

Log:
Fix wrong logical operator which causes too relaxed checking in VC-1 test
format probe.
Spotted by Reimar D?ffinger.

Modified:
   trunk/libavformat/vc1test.c

Modified: trunk/libavformat/vc1test.c
==============================================================================
--- trunk/libavformat/vc1test.c	Mon Sep 14 17:44:05 2009	(r19838)
+++ trunk/libavformat/vc1test.c	Mon Sep 14 19:05:13 2009	(r19839)
@@ -33,7 +33,7 @@
 
 static int vc1t_probe(AVProbeData *p)
 {
-    if (p->buf[3] != 0xC5 && AV_RL32(&p->buf[4]) != 4)
+    if (p->buf[3] != 0xC5 || AV_RL32(&p->buf[4]) != 4)
         return 0;
 
     return AVPROBE_SCORE_MAX/2;



More information about the ffmpeg-cvslog mailing list