projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab8075a
)
Use AVPALETTE_COUNT instead of hard-coding 256.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:22:48 +0000
(15:22 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:22:48 +0000
(15:22 +0000)
This is consistent with other codecs and will also avoid a crash on the
memcpy to data[1] if AVPALETTE_SIZE ever increases.
Originally committed as revision 21399 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vb.c
patch
|
blob
|
history
diff --git
a/libavcodec/vb.c
b/libavcodec/vb.c
index
155cceb
..
4dfac43
100644
(file)
--- a/
libavcodec/vb.c
+++ b/
libavcodec/vb.c
@@
-43,7
+43,7
@@
typedef struct VBDecContext {
AVFrame pic;
uint8_t *frame, *prev_frame;
- uint32_t pal[
256
];
+ uint32_t pal[
AVPALETTE_COUNT
];
const uint8_t *stream;
} VBDecContext;