NEW311347
[GStreamer] Use an explicit allowlist of AAC AOTs
https://bugs.webkit.org/show_bug.cgi?id=311347
Summary [GStreamer] Use an explicit allowlist of AAC AOTs
Alicia Boya García
Reported 2026-04-02 05:54:53 PDT
Currently the GStreamer ports of WebKit report support to any codec string starting with "mp4a" if there is a decoder that supports audio/mpeg, mpegversion=4. This is too optimistic and can lead to applications choosing to use newer MPEG-4 Audio codecs not yet supported by the user's system. This patch makes WebKit play it safer and instead only report support for AOTs with widespread support. This includes reporting AOT 42 (typically used with xHE-AAC) as not supported. Ideally we would query support for it somehow and reply accordingly, but that would necessitate decoders to provide a uniform API for querying such support, which unfortunately does not exist (and would be tricky in practice as support is not always binary). An environment variable is provided to declare explicit support or lack thereof in environments where this is well-known, as well as for debugging and experimentation. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::initializeDecoders):
Attachments
Alicia Boya García
Comment 1 2026-04-02 06:03:01 PDT
Note You need to log in before you can comment on or make changes to this bug.