[FFmpeg-cvslog] r26088 - trunk/libavcodec/pcxenc.c

reimar subversion
Sat Dec 25 17:09:24 CET 2010


Author: reimar
Date: Sat Dec 25 17:09:23 2010
New Revision: 26088

Log:
Fix size of monoblack_pal array, code uses 16 values unconditionally.
Patch by Daniel Verkamp [daniel drv nu].

Modified:
   trunk/libavcodec/pcxenc.c

Modified: trunk/libavcodec/pcxenc.c
==============================================================================
--- trunk/libavcodec/pcxenc.c	Fri Dec 24 23:43:07 2010	(r26087)
+++ trunk/libavcodec/pcxenc.c	Sat Dec 25 17:09:23 2010	(r26088)
@@ -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)
 {



More information about the ffmpeg-cvslog mailing list