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
This commit is contained in:
Reimar Döffinger 2010-01-23 15:22:48 +00:00
parent ab8075a2da
commit 87ac0c0a39
1 changed files with 1 additions and 1 deletions

View File

@ -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;