mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
iterate through the appropriate range of palette entries
Originally committed as revision 2295 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b10529b4c4
commit
773159ed27
@ -449,7 +449,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, ByteIOContext *pb,
|
|||||||
|
|
||||||
/* load the palette into internal data structure */
|
/* load the palette into internal data structure */
|
||||||
first_color = LE_16(&scratch[0]);
|
first_color = LE_16(&scratch[0]);
|
||||||
last_color = LE_16(&scratch[2]);
|
last_color = first_color + LE_16(&scratch[2]);
|
||||||
/* sanity check (since they are 16 bit values) */
|
/* sanity check (since they are 16 bit values) */
|
||||||
if ((first_color > 0xFF) || (last_color > 0xFF)) {
|
if ((first_color > 0xFF) || (last_color > 0xFF)) {
|
||||||
debug_ipmovie("demux_ipmovie: set_palette indices out of range (%d -> %d)\n",
|
debug_ipmovie("demux_ipmovie: set_palette indices out of range (%d -> %d)\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user