From 2ba8301769b770ec96ea8f4c02da78a25c6458fe Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 6 Sep 2009 16:09:21 +0000 Subject: 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. Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/asv1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/asv1.c') diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c index c9a3d24944..5f9d5232fd 100644 --- a/libavcodec/asv1.c +++ b/libavcodec/asv1.c @@ -645,7 +645,7 @@ AVCodec asv1_encoder = { encode_init, encode_frame, //encode_end, - .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, + .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), }; #endif @@ -659,7 +659,7 @@ AVCodec asv2_encoder = { encode_init, encode_frame, //encode_end, - .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, + .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), }; #endif -- cgit v1.2.3