Browse Source

ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.

The AC-3 encoder unconditionally references some symbols from the E-AC-3
encoder; make those references conditional to fix linking.
tags/n0.8
Diego Biurrun 14 years ago
parent
commit
d3778972d8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/ac3enc.c

+ 2
- 2
libavcodec/ac3enc.c View File

@@ -566,7 +566,7 @@ static void apply_channel_coupling(AC3EncodeContext *s)
} }
} }


if (s->eac3)
if (CONFIG_EAC3_ENCODER && s->eac3)
ff_eac3_set_cpl_states(s); ff_eac3_set_cpl_states(s);
#endif /* CONFIG_AC3ENC_FLOAT */ #endif /* CONFIG_AC3ENC_FLOAT */
} }
@@ -1987,7 +1987,7 @@ static void output_frame(AC3EncodeContext *s, unsigned char *frame)


init_put_bits(&s->pb, frame, AC3_MAX_CODED_FRAME_SIZE); init_put_bits(&s->pb, frame, AC3_MAX_CODED_FRAME_SIZE);


if (s->eac3)
if (CONFIG_EAC3_ENCODER && s->eac3)
ff_eac3_output_frame_header(s); ff_eac3_output_frame_header(s);
else else
ac3_output_frame_header(s); ac3_output_frame_header(s);


Loading…
Cancel
Save