Commit cf75cea
committed
[GStreamer] Use an explicit allowlist of AAC AOTs
https://bugs.webkit.org/show_bug.cgi?id=311347
Reviewed by NOBODY (OOPS!).
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.
See: WebPlatformForEmbedded/WPEWebKit#1641 (but
note that this patch takes a different approach than the original PR).
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/media-source/mediasource-is-type-supported-expected.txt:
* Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::initializeDecoders):1 parent 1ec6b31 commit cf75cea
File tree
2 files changed
+27
-5
lines changed- LayoutTests/platform/glib/imported/w3c/web-platform-tests/media-source
- Source/WebCore/platform/graphics/gstreamer
2 files changed
+27
-5
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
472 | 494 | | |
473 | 495 | | |
474 | 496 | | |
| |||
0 commit comments