projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10529b
)
iterate through the appropriate range of palette entries
author
Mike Melanson
<mike@multimedia.cx>
Sat, 20 Sep 2003 00:31:43 +0000
(
00:31
+0000)
committer
Mike Melanson
<mike@multimedia.cx>
Sat, 20 Sep 2003 00:31:43 +0000
(
00:31
+0000)
Originally committed as revision 2295 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/ipmovie.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/ipmovie.c
b/libavformat/ipmovie.c
index
cf88941
..
45b6883
100644
(file)
--- 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",