This was broken for two reasons: First, the aac audio format handler
depends on libmp4v2 rather than libfaad. Second, we must include
aac_common if either libfaad or libmp4v2 (or both) were found. The
logic in configure.ac got this wrong.
},
{
.name = "aac",
-#ifdef HAVE_FAAD
+#if defined(HAVE_MP4V2)
.init = aac_afh_init,
#endif
},
NEED_FLAC_OBJECTS && {
play_errlist_objs="$play_errlist_objs flacdec_filter flac_afh"
}
-if test $HAVE_FAAD = yes && test $HAVE_MP4V2 = yes; then
- play_errlist_objs="$play_errlist_objs aacdec_filter aac_afh aac_common"
+if test $HAVE_FAAD = yes; then
+ play_errlist_objs="$play_errlist_objs aacdec_filter"
+fi
+if test $HAVE_MP4V2 = yes; then
+ play_errlist_objs="$play_errlist_objs aac_afh"
+fi
+if test $HAVE_MP4V2 = yes || test $HAVE_FAAD = yes; then
+ play_errlist_objs="$play_errlist_objs aac_common"
fi
if test $HAVE_MAD = yes; then
play_cmdline_objs="$play_cmdline_objs mp3dec_filter"