Repository navigation
[GStreamer] Report support for supported non-AAC mp4a codecs - #62913
Merged
Merged
Conversation
Collaborator
|
EWS run on current version of this PR (hash 9a0d64a) Details |
calvaris
approved these changes
Apr 17, 2026
https://bugs.webkit.org/show_bug.cgi?id=312501 Reviewed by Xabier Rodriguez-Calvar. https://commits.webkit.org/310634@main made it so that we no longer mark all codec strings starting with "mp4a." as supported the moment we find an MPEG-4 AAC decoder, instead allowing only the specific codec strings used by AAC. There are however other audio codec that use strings that start with "mp4a.", that were already working, and for which WebKit reported support, even if only accidentally due to finding an AAC decoder. Notably, this the case for MP3 (mp4a.6b and mp4a.69), AC-3 (mp4a.a5) and EAC-3 (mp4a.a6). This regression was identified with the MVT test suite: https://github.com/rdkcentral/MVT This patch adds those codec strings to GStreamerRegistryScanner when appropriate decoders are found, both fixing the regression and ensuring support is not reported accidentally. Previously the code for initializeDecoders() implied MPEG-1 and MPEG-2 audio is not supported with MSE, even though it was already working and reported as supported. This patch moves the support check code to the part of the function common for both MSE and non-MSE. Support for mp4a.67 has been moved to the check for audio/mpeg, mpegversion=2. Although in practice virtually all AAC decoders will support both mpegversion=2 and mpegversion=4, this is the technically correct place for it. As a drive-by fix, the logging in GStreamerRegistryScanner::refresh() has been fixed: all codecs were being reported as being hardware-based due to leftovers from a refactor. * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::refresh): (WebCore::GStreamerRegistryScanner::initializeDecoders): Canonical link: https://commits.webkit.org/311571@main
webkit-commit-queue
force-pushed
the
pr-2026-04-16-mp4a
branch
from
April 20, 2026 09:28
9a0d64a to
2566042
Compare
Collaborator
|
Committed 311571@main (2566042): https://commits.webkit.org/311571@main Reviewed commits have been landed. Closing PR #62913 and removing active labels. |
Contributor
|
Backported into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2566042
9a0d64a