Mercurial > libavcodec.hg
comparison targaenc.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 | 2acf0ae7b041 |
children | e9435ad2d61e |
comparison
equal
deleted
inserted
replaced
10145:7955db355703 | 10146:38cfe222e1a4 |
---|---|
155 .type = CODEC_TYPE_VIDEO, | 155 .type = CODEC_TYPE_VIDEO, |
156 .id = CODEC_ID_TARGA, | 156 .id = CODEC_ID_TARGA, |
157 .priv_data_size = sizeof(TargaContext), | 157 .priv_data_size = sizeof(TargaContext), |
158 .init = targa_encode_init, | 158 .init = targa_encode_init, |
159 .encode = targa_encode_frame, | 159 .encode = targa_encode_frame, |
160 .pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, PIX_FMT_NONE}, | 160 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, PIX_FMT_NONE}, |
161 .long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"), | 161 .long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"), |
162 }; | 162 }; |