Commit aee7cf87 authored by Michael Niedermayer's avatar Michael Niedermayer

Fix reading an element after the array.

Fixes CID27 RUN2

Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6b18d278
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment