diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-12-01 13:59:08 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-12-01 13:59:08 +0000 |
commit | e692c8634cc01c7091d99ec0f58d25715704702b (patch) | |
tree | 4b101326bb5c56d05c71b9ae3fbdc867f27c1c55 /libavformat | |
parent | 248a1aa54c08b14e8bd49147f59d954c41b5b3a3 (diff) | |
download | ffmpeg-e692c8634cc01c7091d99ec0f58d25715704702b.tar.gz |
off by 1 in the palette
Originally committed as revision 2548 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ipmovie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index caaa3dd63b..89ec674bed 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -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", |