Mercurial > libavformat.hg
changeset 253:408f620eed8c libavformat
iterate through the appropriate range of palette entries
author | tmmm |
---|---|
date | Sat, 20 Sep 2003 00:31:43 +0000 |
parents | 4aa51913d0b2 |
children | bca5abd97e43 |
files | ipmovie.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ipmovie.c Thu Sep 18 04:25:41 2003 +0000 +++ b/ipmovie.c Sat Sep 20 00:31:43 2003 +0000 @@ -449,7 +449,7 @@ /* load the palette into internal data structure */ 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) */ if ((first_color > 0xFF) || (last_color > 0xFF)) { debug_ipmovie("demux_ipmovie: set_palette indices out of range (%d -> %d)\n",