# HG changeset patch # User melanson # Date 1070287148 0 # Node ID 0fb9e6396a0d9c1ad223852a5428e90485fbf6bd # Parent e14ebc79e4bf4bbc24dbcccb7ff0fc5bb88c6ad8 off by 1 in the palette diff -r e14ebc79e4bf -r 0fb9e6396a0d ipmovie.c --- a/ipmovie.c Sat Nov 29 00:21:33 2003 +0000 +++ b/ipmovie.c Mon Dec 01 13:59:08 2003 +0000 @@ -452,7 +452,7 @@ /* 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",