Commit 87ac0c0a authored by Reimar Döffinger's avatar Reimar Döffinger

Use AVPALETTE_COUNT instead of hard-coding 256.

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
parent ab8075a2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment