diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-06 20:09:21 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-06 20:09:21 +0400 |
commit | 2ba8301769b770ec96ea8f4c02da78a25c6458fe (patch) | |
tree | 0f2fa2e8597e9f49f5c8487bb73c3dab4a7de0d3 /libavcodec/libx264.c | |
parent | af8aae3fa31f8e7ed0645b3bbbc62ea5dc47e09c (diff) |
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
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 21334c9460..8b57e62ba0 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -320,6 +320,6 @@ AVCodec libx264_encoder = { .encode = X264_frame, .close = X264_close, .capabilities = CODEC_CAP_DELAY, - .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("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), }; |