diff options
author | Daniel Kang <daniel.d.kang@gmail.com> | 2011-01-10 10:36:14 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2011-01-10 10:36:14 +0000 |
commit | 8e37a1deb30c51e2e2ef5726f550b698303bc029 (patch) | |
tree | 4356fa38ef95e0df8bf24f35884c84ea164599cf | |
parent | 43c34675afee8ced294ecc436f58587e8e8e913b (diff) | |
download | ffmpeg-8e37a1deb30c51e2e2ef5726f550b698303bc029.tar.gz |
Check for vectable ID > 0, fixes issue 2508.
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26294 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/truemotion1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index d6ea4c1a6c..338b4dcc19 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -387,7 +387,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s) if ((header.compression & 1) && header.header_type) sel_vector_table = pc_tbl2; else { - if (header.vectable < 4) + if (header.vectable > 0 && header.vectable < 4) sel_vector_table = tables[header.vectable - 1]; else { av_log(s->avctx, AV_LOG_ERROR, "invalid vector table id (%d)\n", header.vectable); |