Commit 8e37a1de authored by Daniel Kang's avatar Daniel Kang Committed by Carl Eugen Hoyos

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
parent 43c34675
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment