Commit 899c0052 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21399 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8cf04c5f
...@@ -43,7 +43,7 @@ typedef struct VBDecContext { ...@@ -43,7 +43,7 @@ typedef struct VBDecContext {
AVFrame pic; AVFrame pic;
uint8_t *frame, *prev_frame; uint8_t *frame, *prev_frame;
uint32_t pal[256]; uint32_t pal[AVPALETTE_COUNT];
const uint8_t *stream; const uint8_t *stream;
} VBDecContext; } 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