Mercurial > libavcodec.hg
diff wmaenc.c @ 10145:7955db355703 libavcodec
Make sample_fmts and channel_layouts compound literals const to reduce size of
.data section.
author | reimar |
---|---|
date | Sun, 06 Sep 2009 09:15:07 +0000 |
parents | 5cc32c474caf |
children | 964d01b50f17 |
line wrap: on
line diff
--- a/wmaenc.c Sun Sep 06 08:56:10 2009 +0000 +++ b/wmaenc.c Sun Sep 06 09:15:07 2009 +0000 @@ -392,7 +392,7 @@ encode_init, encode_superframe, ff_wma_end, - .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, + .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), }; @@ -405,6 +405,6 @@ encode_init, encode_superframe, ff_wma_end, - .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, + .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), };