changeset 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 5da84f0d0a55
children 68de5143aa45
files ac3dec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Wed Jul 22 23:37:53 2009 +0000
+++ b/ac3dec.c	Thu Jul 23 00:15:23 2009 +0000
@@ -1355,6 +1355,7 @@
     .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
 };
 
+#if CONFIG_EAC3_DECODER
 AVCodec eac3_decoder = {
     .name = "eac3",
     .type = CODEC_TYPE_AUDIO,
@@ -1365,3 +1366,4 @@
     .decode = ac3_decode_frame,
     .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52B (AC-3, E-AC-3)"),
 };
+#endif