From: Tim-Philipp Müller Date: Fri, 21 Oct 2022 16:10:57 +0000 (+0100) Subject: fdkaacenc: don't set base-profile=lc for non-backwards compatible output X-Git-Tag: 1.22.0~705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24645e35c5a43b030be694e8146be780454a1cdf;p=platform%2Fupstream%2Fgstreamer.git fdkaacenc: don't set base-profile=lc for non-backwards compatible output Part-of: --- diff --git a/subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c b/subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c index fca90e3..54e46ba 100644 --- a/subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c +++ b/subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c @@ -473,6 +473,13 @@ gst_fdkaacenc_set_format (GstAudioEncoder * enc, GstAudioInfo * info) if (ext_profile) gst_caps_set_simple (src_caps, "profile", G_TYPE_STRING, ext_profile, NULL); + /* An AAC-LC-only decoder will not decode a stream that uses explicit + * hierarchical signaling */ + if (signaling_mode == 2 && aot != AOT_AAC_LC) { + gst_structure_remove_field (gst_caps_get_structure (src_caps, 0), + "base-profile"); + } + ret = gst_audio_encoder_set_output_format (enc, src_caps); gst_caps_unref (src_caps);