Commit 8be84f61 authored by melanson's avatar melanson

off by 1 in the palette


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2548 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b82a1a91
......@@ -452,7 +452,7 @@ static int process_ipmovie_chunk(IPMVEContext *s, ByteIOContext *pb,
/* load the palette into internal data structure */
first_color = LE_16(&scratch[0]);
last_color = first_color + LE_16(&scratch[2]);
last_color = first_color + LE_16(&scratch[2]) - 1;
/* sanity check (since they are 16 bit values) */
if ((first_color > 0xFF) || (last_color > 0xFF)) {
debug_ipmovie("demux_ipmovie: set_palette indices out of range (%d -> %d)\n",
......
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