isomp4: Fix (E)AC-3 channel count handling
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 30 May 2023 13:10:11 +0000 (15:10 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 15 Jun 2023 15:23:22 +0000 (15:23 +0000)
commit21cccd0e0026eaa83eca2abac4fa2e62119b7725
tree92902878ceb386500b033f3433639345829f7786
parent3eb78e5280ec39e420172be7a4deb6431b6497b6
isomp4: Fix (E)AC-3 channel count handling

The muxer used a fixed value of 2 channels because the TR 102 366 spec
says they're to be ignored. However, the demuxer still trusted them,
resulting in bad caps.

Make the muxer fill in the correct channel count anyway (FFmpeg already
does) and make the demuxer ignore the value.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4773>
subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c
subprojects/gst-plugins-good/gst/isomp4/qtdemux.c