tsdemux: Handle old streams claiming to be HDMV with Opus
authorJan Schmidt <jan@centricular.com>
Sun, 24 May 2020 15:49:00 +0000 (01:49 +1000)
committerJan Schmidt <jan@centricular.com>
Sun, 24 May 2020 15:51:46 +0000 (01:51 +1000)
commit3fdf25cc37797c52112c11b6f618523e3187b3c7
treeb67372c0c48c448c686a628de28c1dc85b41c58c
parent918ed75944aa0d97760c29b1ef67fd8f0afab64f
tsdemux: Handle old streams claiming to be HDMV with Opus

GStreamer 1.16 and earlier produced streams with HDMV registration id
but with Opus audio streams on the stream ID that AC-4 now uses. Make
sure those still play back by special casing the check for AC-4 in HDMV

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1295

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