comparison libx264.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 06ab8ac1a593
children f397ad0fa67d
comparison
equal deleted inserted replaced
10145:7955db355703 10146:38cfe222e1a4
318 .priv_data_size = sizeof(X264Context), 318 .priv_data_size = sizeof(X264Context),
319 .init = X264_init, 319 .init = X264_init,
320 .encode = X264_frame, 320 .encode = X264_frame,
321 .close = X264_close, 321 .close = X264_close,
322 .capabilities = CODEC_CAP_DELAY, 322 .capabilities = CODEC_CAP_DELAY,
323 .pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE }, 323 .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
324 .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), 324 .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
325 }; 325 };