summaryrefslogtreecommitdiff
path: root/libavformat/vc1test.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-09-14 17:05:13 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-09-14 17:05:13 +0000
commit65d6d40350e7ccf693c058fddf183f9e90e0e511 (patch)
treec181b7aff994e7ca7163e03d232ea77f4d53fa18 /libavformat/vc1test.c
parent8466ab59b21257ff254b4c17ef428458bac645d9 (diff)
downloadffmpeg-65d6d40350e7ccf693c058fddf183f9e90e0e511.tar.gz
Fix wrong logical operator which causes too relaxed checking in VC-1 test
format probe. Spotted by Reimar Döffinger. Originally committed as revision 19839 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/vc1test.c')
-rw-r--r--libavformat/vc1test.c2
1 files changed, 1 insertions, 1 deletions
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;