mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
fdkaac: fix the build for older fdkaac versions
Support for 7.1 was added in 0.1.14.
This commit is contained in:
parent
afae1c53d2
commit
f149f6bc0e
2 changed files with 10 additions and 3 deletions
|
@ -2376,8 +2376,12 @@ AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
|
|||
dnl *** fdkaac ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_FDK_AAC, true)
|
||||
AG_GST_CHECK_FEATURE(FDK_AAC, [fdkaac plugin], fdkaac, [
|
||||
PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", [
|
||||
HAVE_FDK_AAC="no"
|
||||
PKG_CHECK_MODULES(FDK_AAC, fdk-aac >= 0.1.14, [
|
||||
HAVE_FDK_AAC="yes",
|
||||
HAVE_FDK_AAC_0_1_14="yes"
|
||||
AC_DEFINE(HAVE_FDK_AAC_0_1_14 1, [Define if we have fdk-aac >= 0.1.14])
|
||||
],[
|
||||
PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", HAVE_FDK_AAC="no")
|
||||
])
|
||||
])
|
||||
|
||||
|
|
|
@ -92,7 +92,9 @@ static const struct
|
|||
GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT,
|
||||
GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT,
|
||||
GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT,
|
||||
GST_AUDIO_CHANNEL_POSITION_LFE1}}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_LFE1}}
|
||||
#ifdef HAVE_FDK_AAC_0_1_14
|
||||
, {
|
||||
8, MODE_7_1_REAR_SURROUND, {
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER,
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT,
|
||||
|
@ -111,6 +113,7 @@ static const struct
|
|||
GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT,
|
||||
GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT,
|
||||
GST_AUDIO_CHANNEL_POSITION_LFE1}}
|
||||
#endif
|
||||
};
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
|
|
Loading…
Reference in a new issue