Fix reading an element after the array.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jun 2008 00:32:31 +0000 (00:32 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jun 2008 00:32:31 +0000 (00:32 +0000)
Fixes CID27 RUN2

Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/truemotion1.c

index 48625f8..721b3f0 100644 (file)
@@ -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;
     }