From aee7cf87521f30eaf7f0983736f1105a2c352d6f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Jun 2008 00:32:31 +0000 Subject: Fix reading an element after the array. Fixes CID27 RUN2 Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/truemotion1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/truemotion1.c') diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index 48625f8b1c..721b3f087b 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -393,7 +393,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s) } } - if (header.compression > 17) { + if (header.compression >= 17) { av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression); return -1; } -- cgit v1.2.3