diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-06 09:15:07 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-06 09:15:07 +0000 |
commit | b5f09d31c21d1e89f7c4693f28046d3b26209da3 (patch) | |
tree | a6e2a42f04e4c19d1bce8933aa2cc5e85ad0d293 /libavcodec/pcm.c | |
parent | 88e70e1b0acbcb80d1fa6576082570122b8cf82b (diff) | |
download | ffmpeg-b5f09d31c21d1e89f7c4693f28046d3b26209da3.tar.gz |
Make sample_fmts and channel_layouts compound literals const to reduce size of
.data section.
Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 8530cd689a..a0ce9f5783 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -523,7 +523,7 @@ AVCodec name ## _encoder = { \ pcm_encode_frame, \ pcm_encode_close, \ NULL, \ - .sample_fmts = (enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ + .sample_fmts = (const enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ }; #else @@ -541,7 +541,7 @@ AVCodec name ## _decoder = { \ NULL, \ NULL, \ pcm_decode_frame, \ - .sample_fmts = (enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ + .sample_fmts = (const enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ }; #else |