Fix reading an element after the array.

Fixes CID27 RUN2

Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-06-06 00:32:31 +00:00
parent 6b18d2780e
commit aee7cf8752

View 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;
}