summaryrefslogtreecommitdiff
path: root/libavformat/ipmovie.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-09-20 00:31:43 +0000
committerMike Melanson <mike@multimedia.cx>2003-09-20 00:31:43 +0000
commit773159ed275994b4fed5b0eaa64b4fece9342f26 (patch)
tree031df59da668fbe6f57a92f97634a196e65f5b6b /libavformat/ipmovie.c
parentb10529b4c47b3435faa4be85f344cffcb5d30896 (diff)
iterate through the appropriate range of palette entries
Originally committed as revision 2295 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ipmovie.c')
-rw-r--r--libavformat/ipmovie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index cf8894147c..45b6883b1e 100644
--- a/libavformat/ipmovie.c
+++ b/libavformat/ipmovie.c
@@ -449,7 +449,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 = 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",