Mercurial > libavcodec.hg
comparison pcxenc.c @ 10146:38cfe222e1a4 libavcodec
Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then.
author | reimar |
---|---|
date | Sun, 06 Sep 2009 16:09:21 +0000 |
parents | 04d827aafa7c |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10145:7955db355703 | 10146:38cfe222e1a4 |
---|---|
195 CODEC_ID_PCX, | 195 CODEC_ID_PCX, |
196 sizeof(PCXContext), | 196 sizeof(PCXContext), |
197 pcx_encode_init, | 197 pcx_encode_init, |
198 pcx_encode_frame, | 198 pcx_encode_frame, |
199 NULL, | 199 NULL, |
200 .pix_fmts = (enum PixelFormat[]){ | 200 .pix_fmts = (const enum PixelFormat[]){ |
201 PIX_FMT_RGB24, | 201 PIX_FMT_RGB24, |
202 PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, | 202 PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, |
203 PIX_FMT_MONOBLACK, | 203 PIX_FMT_MONOBLACK, |
204 PIX_FMT_NONE}, | 204 PIX_FMT_NONE}, |
205 .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), | 205 .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), |