mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
fdkaacenc: don't set base-profile=lc for non-backwards compatible output
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1785>
This commit is contained in:
parent
31c04f87e3
commit
24645e35c5
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue