diff options
author | Daniel Kang <daniel.d.kang@gmail.com> | 2011-01-10 13:36:14 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2011-01-10 13:36:14 +0300 |
commit | 8e37a1deb30c51e2e2ef5726f550b698303bc029 (patch) | |
tree | 4356fa38ef95e0df8bf24f35884c84ea164599cf /libavcodec/truemotion1.c | |
parent | 43c34675afee8ced294ecc436f58587e8e8e913b (diff) |
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
Diffstat (limited to 'libavcodec/truemotion1.c')
-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); |