aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2010-12-25 16:09:23 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-12-25 16:09:23 +0000
commit13011def1f63abecdcb47aaa04a8468baf31196a (patch)
treef5b7a1bd4d4d7c0e38667a35ee17d7d215fe3c96 /libavcodec
parent911b32f482985ab284a21522fa5a3c2baed421d5 (diff)
downloadffmpeg-13011def1f63abecdcb47aaa04a8468baf31196a.tar.gz
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pcxenc.c2
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)
{