From 65d6d40350e7ccf693c058fddf183f9e90e0e511 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 14 Sep 2009 17:05:13 +0000 Subject: Fix wrong logical operator which causes too relaxed checking in VC-1 test format probe. Spotted by Reimar Döffinger. 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(-) (limited to 'libavformat/vc1test.c') 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; -- cgit v1.2.3