tsdemux: Fix AC-4 detection
authorEdward Hervey <edward@centricular.com>
Thu, 14 Apr 2022 06:23:51 +0000 (08:23 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 14 Apr 2022 06:33:34 +0000 (08:33 +0200)
commitd678d7136c3d3d8ae0a8ed9d55648ff78c932f6d
tree65e37c449c483249050313872af7295d942d1e88
parent04bb1ac3ef84c4c68781c41d424087359721c532
tsdemux: Fix AC-4 detection

This regression was introduced by
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1102
and has been present since 1.18

* Stream Type 0x06 is defined in the base mpeg-ts specification as Private PES
Packets. Determining the content should be solely based on descriptors found
within the PMT.
* This was abused in that commit by defining a "bluray-only" stream type for AC4
: `ST_BD_AUDIO_AC4`
* This should be entirely handled in the regular private pes handling further
down in the code

Fixes #1154

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2175>
subprojects/gst-plugins-bad/gst/mpegtsdemux/gstmpegdefs.h
subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c