Commit 34bbf22
setCodecPreferences should accept codecs regardless of mimeType case
https://bugs.webkit.org/show_bug.cgi?id=307157
rdar://169789074
Reviewed by Youenn Fablet.
This patch aligns WebKit with Gecko / Firefox.
Use case-insensitive comparison when checking mimeType prefix in
toRtpCodecCapability to accept codecs with any case variation
(e.g., "video/VP8", "VIDEO/vp8", "Video/Vp8").
* Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp:
(WebCore::toRtpCodecCapability):
* LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt: Progressions
Canonical link: https://commits.webkit.org/307062@main1 parent 582cb03 commit 34bbf22
File tree
2 files changed
+5
-5
lines changed- LayoutTests/imported/w3c/web-platform-tests/webrtc
- Source/WebCore/Modules/mediastream/libwebrtc
2 files changed
+5
-5
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments