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:
parent
6b18d2780e
commit
aee7cf8752
@ -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);
|
av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user