mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user