From 13011def1f63abecdcb47aaa04a8468baf31196a Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Sat, 25 Dec 2010 16:09:23 +0000 Subject: [PATCH] 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 --- libavcodec/pcxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {