diff options
author | Daniel Verkamp <daniel@drv.nu> | 2010-12-25 19:09:23 +0300 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-12-25 19:09:23 +0300 |
commit | 13011def1f63abecdcb47aaa04a8468baf31196a (patch) | |
tree | f5b7a1bd4d4d7c0e38667a35ee17d7d215fe3c96 | |
parent | 911b32f482985ab284a21522fa5a3c2baed421d5 (diff) |
Fix size of monoblack_pal array, code uses 16 values unconditionally.
Patch by Daniel Verkamp [daniel drv nu].
Originally committed as revision 26088 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/pcxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcxenc.c b/libavcodec/pcxenc.c index a3ce284b5b..e01727f3e7 100644 --- a/libavcodec/pcxenc.c +++ b/libavcodec/pcxenc.c @@ -33,7 +33,7 @@ typedef struct PCXContext { AVFrame picture; } PCXContext; -static const uint32_t monoblack_pal[] = { 0x000000, 0xFFFFFF }; +static const uint32_t monoblack_pal[16] = { 0x000000, 0xFFFFFF }; static av_cold int pcx_encode_init(AVCodecContext *avctx) { |