fdkaacenc: fix output caps in case of implicit signaling and HE-AAC
authorTim-Philipp Müller <tim@centricular.com>
Sat, 22 Oct 2022 10:10:24 +0000 (11:10 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 25 Oct 2022 00:13:04 +0000 (00:13 +0000)
commitd7e2aff9942ef54ea67244179aab87fdf3fe8028
tree08c6b3959ea23f7f1af2003a9508570f399e000a
parent24645e35c5a43b030be694e8146be780454a1cdf
fdkaacenc: fix output caps in case of implicit signaling and HE-AAC

Need to put the actual profile in the output caps otherwise any
capsfilter after the encoder that was used to force the output
profile will fail, such as

  fdkaacenc ! audio/mpeg,stream-format=adts,profile=he-aac-v1 ! ..

because we put profile=lc in there to match the profile signaled
in the ADTS header. This is expressed through the base-profile=lc
in the GStreamer caps though, the profile needs to carry the
'real' profile.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1785>
subprojects/gst-plugins-bad/ext/fdkaac/gstfdkaacenc.c