mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
43c34675af
commit
8e37a1deb3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user