Mercurial > libavcodec.hg
diff bmpenc.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 | c48f55549c06 |
children | 98fdef0c35a1 |
line wrap: on
line diff
--- a/bmpenc.c Sun Sep 06 09:15:07 2009 +0000 +++ b/bmpenc.c Sun Sep 06 16:09:21 2009 +0000 @@ -139,7 +139,7 @@ bmp_encode_init, bmp_encode_frame, NULL, //encode_end, - .pix_fmts = (enum PixelFormat[]){ + .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_RGB565, PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8,