comparison ac3enc.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 bdf4a9ca162a
comparison
equal deleted inserted replaced
10144:50ec8930f99e 10145:7955db355703
1398 sizeof(AC3EncodeContext), 1398 sizeof(AC3EncodeContext),
1399 AC3_encode_init, 1399 AC3_encode_init,
1400 AC3_encode_frame, 1400 AC3_encode_frame,
1401 AC3_encode_close, 1401 AC3_encode_close,
1402 NULL, 1402 NULL,
1403 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, 1403 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
1404 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), 1404 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
1405 .channel_layouts = (int64_t[]){ 1405 .channel_layouts = (const int64_t[]){
1406 CH_LAYOUT_MONO, 1406 CH_LAYOUT_MONO,
1407 CH_LAYOUT_STEREO, 1407 CH_LAYOUT_STEREO,
1408 CH_LAYOUT_2_1, 1408 CH_LAYOUT_2_1,
1409 CH_LAYOUT_SURROUND, 1409 CH_LAYOUT_SURROUND,
1410 CH_LAYOUT_2_2, 1410 CH_LAYOUT_2_2,