diff tiffenc.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 266bf83f634d
children e15eb76d9e47
line wrap: on
line diff
--- a/tiffenc.c	Sun Sep 06 09:15:07 2009 +0000
+++ b/tiffenc.c	Sun Sep 06 16:09:21 2009 +0000
@@ -452,7 +452,7 @@
     0,
     NULL,
     .pix_fmts =
-        (enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8,
+        (const enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8,
                               PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE,
                               PIX_FMT_YUV420P, PIX_FMT_YUV422P,
                               PIX_FMT_YUV444P, PIX_FMT_YUV410P,