From 65d6d40350e7ccf693c058fddf183f9e90e0e511 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 14 Sep 2009 17:05:13 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20wrong=20logical=20operator=20which=20caus?= =?UTF-8?q?es=20too=20relaxed=20checking=20in=20VC-1=20test=20format=20pro?= =?UTF-8?q?be.=20Spotted=20by=20Reimar=20D=C3=B6ffinger.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 19839 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/vc1test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 007c3a1a1e..861846c48a 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -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;