changeset 5177:951c95954c9c libavformat

Fix wrong logical operator which causes too relaxed checking in VC-1 test format probe. Spotted by Reimar Dffinger.
author kostya
date Mon, 14 Sep 2009 17:05:13 +0000
parents 36225b62e091
children 092a527cabc8
files vc1test.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vc1test.c	Mon Sep 14 15:44:05 2009 +0000
+++ b/vc1test.c	Mon Sep 14 17:05:13 2009 +0000
@@ -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;