comparison ac3dec.c @ 9982:daa53251c64d libavcodec

Make sure that eac3_decoder only gets enabled when CONFIG_EAC3_DECODER is set.
author diego
date Thu, 23 Jul 2009 00:15:23 +0000
parents 7ad7d4094d1f
children 68de5143aa45
comparison
equal deleted inserted replaced
9981:5da84f0d0a55 9982:daa53251c64d
1353 .close = ac3_decode_end, 1353 .close = ac3_decode_end,
1354 .decode = ac3_decode_frame, 1354 .decode = ac3_decode_frame,
1355 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), 1355 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
1356 }; 1356 };
1357 1357
1358 #if CONFIG_EAC3_DECODER
1358 AVCodec eac3_decoder = { 1359 AVCodec eac3_decoder = {
1359 .name = "eac3", 1360 .name = "eac3",
1360 .type = CODEC_TYPE_AUDIO, 1361 .type = CODEC_TYPE_AUDIO,
1361 .id = CODEC_ID_EAC3, 1362 .id = CODEC_ID_EAC3,
1362 .priv_data_size = sizeof (AC3DecodeContext), 1363 .priv_data_size = sizeof (AC3DecodeContext),
1363 .init = ac3_decode_init, 1364 .init = ac3_decode_init,
1364 .close = ac3_decode_end, 1365 .close = ac3_decode_end,
1365 .decode = ac3_decode_frame, 1366 .decode = ac3_decode_frame,
1366 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52B (AC-3, E-AC-3)"), 1367 .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52B (AC-3, E-AC-3)"),
1367 }; 1368 };
1369 #endif