Mercurial > libavcodec.hg
comparison mpegaudioenc.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 | c78fd9154378 |
children | d4c97368f3e4 |
comparison
equal
deleted
inserted
replaced
10144:50ec8930f99e | 10145:7955db355703 |
---|---|
795 sizeof(MpegAudioContext), | 795 sizeof(MpegAudioContext), |
796 MPA_encode_init, | 796 MPA_encode_init, |
797 MPA_encode_frame, | 797 MPA_encode_frame, |
798 MPA_encode_close, | 798 MPA_encode_close, |
799 NULL, | 799 NULL, |
800 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, | 800 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, |
801 .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), | 801 .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), |
802 }; | 802 }; |
803 | 803 |
804 #undef FIX | 804 #undef FIX |