summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-06 00:32:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-06 00:32:31 +0000
commitaee7cf87521f30eaf7f0983736f1105a2c352d6f (patch)
tree398fa276582d540ddcf7eea34c6ba2ee3385a008 /libavcodec/truemotion1.c
parent6b18d2780e3f30fdaab944e8d97f02ba48c7edbf (diff)
downloadffmpeg-aee7cf87521f30eaf7f0983736f1105a2c352d6f.tar.gz
Fix reading an element after the array.
Fixes CID27 RUN2 Originally committed as revision 13668 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r--libavcodec/truemotion1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index 48625f8b1c..721b3f087b 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -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;
}