14237 Commits

Author SHA1 Message Date
Tamas Szentpeteri
a86fd1fb23 Backed out changeset 4309f75eaa90 (bug 1883615) for causing build bustages related to check_symbol_in_libs. CLOSED TREE 2024-04-17 12:57:02 +03:00
serge-sans-paille
78ac6a6ccf Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-04-17 09:33:00 +00:00
Updatebot
16eb058401 Bug 1891459 - Update dav1d to 5b5399911dd24703de641d65eda5b7f1e845d060 r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D207425
2024-04-16 16:40:31 +00:00
Ben Dean-Kawamura
c3fc8ade58 Bug 1890866 - Reorganize the UniFFI fixtures/examples. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D207208
2024-04-15 18:07:00 +00:00
Denis Palmeiro
91cc9e373c Bug 1887068: Add perfetto SDK and build with it when gecko profiling is enabled on Android. r=glandium,smaug,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D205662
2024-04-15 15:34:02 +00:00
Andreas Pehrson
5ce76e51d9 Bug 1888181 - updated libwebrtc patch stack 2024-04-15 12:53:26 +02:00
Andreas Pehrson
4f6cadbba8 Bug 1888181 - (fix-52fec7d3) Limit scope of race checker in VideoCaptureModuleV4L2::StartCapture. r=mjf
TSAN detects a race between destroying the scoped race checker in StartCapture
and creating the scoped race checker in CaptureProcess, because once the capture
thread has been created (and given its run function) there is no synchronization
before the run function starts to run.

This patch avoids the race by destroying the StartCapture scoped race checker
before creating the capture thread.

Differential Revision: https://phabricator.services.mozilla.com/D207203
2024-04-10 21:54:37 +00:00
Andreas Pehrson
7d2ba714d4 Bug 1888181 - Vendor libwebrtc from 41b1493ddb
Upstream commit: https://webrtc.googlesource.com/src/+/41b1493ddb5d98e9125d5cb002fd57ce76ebd8a7
    [M123 MERGE] Demote RTC_CHECK for sctp_mid() to RTC_LOG(LS_ERROR) if unavailable

    (cherry picked from commit efbfc40029b6986137f9179476955c263da7052a)

    Bug: chromium:326275823, chromium:325900490
    Change-Id: Icfb8850867d1e39f23661422693da4f2829ecc57
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340460
    Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Cr-Original-Commit-Position: refs/heads/main@{#41793}
    No-Try: True
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/342560
    Reviewed-by: Guido Urdaneta <guidou@webrtc.org>
    Commit-Queue: Florent Castelli <orphis@webrtc.org>
    Cr-Commit-Position: refs/branch-heads/6312@{#3}
    Cr-Branched-From: 0355f455a48b141a8277442825ec776a74d66fb7-refs/heads/main@{#41763}
2024-04-04 14:15:20 +02:00
Andreas Pehrson
050dc423d2 Bug 1888181 - Vendor libwebrtc from 45e49ef537
Upstream commit: https://webrtc.googlesource.com/src/+/45e49ef5371ed67ee3278244248133bf9783d65c
    [M123] Fix handling of rejected m-lines without transport description

    A fingerprint should not be required for m-lines which are rejected.

    BUG=chromium:326493639,webrtc:11066

    (cherry picked from commit 845d6bef52ec08dfd9c87d3eff5ae5c07c3fe55d)

    Change-Id: I7428c91a144ca46650e13d72868f160652a98339
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340322
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Reviewed-by: Florent Castelli <orphis@webrtc.org>
    Commit-Queue: Philipp Hancke <phancke@microsoft.com>
    Cr-Original-Commit-Position: refs/heads/main@{#41794}
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/341023
    Cr-Commit-Position: refs/branch-heads/6312@{#2}
    Cr-Branched-From: 0355f455a48b141a8277442825ec776a74d66fb7-refs/heads/main@{#41763}
2024-04-04 14:14:02 +02:00
Andreas Pehrson
a4a6f5a9d8 Bug 1888181 - Vendor libwebrtc from c026167f59
We already cherry-picked this when we vendored 6b419a0536.

Upstream commit: https://webrtc.googlesource.com/src/+/c026167f59bcf4b438d2235e452a76593d62c4e3
    [M123 merge] Limit max frame size in DAV1D decoder

    (cherry picked from commit 74a4038eaddcac773b9fc172ad446df6eb704b11)

    Bug: chromium:325284120
    Change-Id: Iea0aea0a17bb0b1f73b3c1cbd408b7a6cd2b216e
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340180
    Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
    Reviewed-by: Erik Språng <sprang@webrtc.org>
    Cr-Original-Commit-Position: refs/heads/main@{#41776}
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340600
    Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    Commit-Queue: Erik Språng <sprang@webrtc.org>
    Cr-Commit-Position: refs/branch-heads/6312@{#1}
    Cr-Branched-From: 0355f455a48b141a8277442825ec776a74d66fb7-refs/heads/main@{#41763}
2024-04-04 14:12:40 +02:00
Andreas Pehrson
783b64339a Bug 1888181 - Vendor libwebrtc from 0355f455a4
Upstream commit: https://webrtc.googlesource.com/src/+/0355f455a48b141a8277442825ec776a74d66fb7
    Use Environment propagated through android sdk

    This way VP8Decoder and DecoderFallback would use propagated instead of global field trials.

    Bug: webrtc:15791, webrtc:10335
    Change-Id: I5ad5fae38f5b9379bc6376334562c154fbc56e39
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340040
    Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
    Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
    Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41763}
2024-04-04 14:11:29 +02:00
Andreas Pehrson
e28a6c8a55 Bug 1888181 - Vendor libwebrtc from bde80e3c0e
Upstream commit: https://webrtc.googlesource.com/src/+/bde80e3c0ec2be96189087cf36e254f9c4bfb144
    Deprecate Candidate::set_id(), offer generate_id() instead

    Bug: none
    Change-Id: I68df28a24446667c1bcde04120795fce54252feb
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339940
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Reviewed-by: Per Kjellander <perkj@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41762}
2024-04-04 14:10:13 +02:00
Andreas Pehrson
9f408847fd Bug 1888181 - Vendor libwebrtc from a75459d122
Upstream commit: https://webrtc.googlesource.com/src/+/a75459d122c0ce8bec137107159e7d85ba57eff8
    Add google-java-format to DEPS.

    Bug: None
    Change-Id: Ib7e586e76ac91880930b9c9170a11e9daba6df64
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340060
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Reviewed-by: Zoé Lepaul <xalep@webrtc.org>
    Commit-Queue: Zoé Lepaul <xalep@webrtc.org>
    Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41761}
2024-04-04 14:08:58 +02:00
Andreas Pehrson
d062c26778 Bug 1888181 - Vendor libwebrtc from d99da2c5f8
Upstream commit: https://webrtc.googlesource.com/src/+/d99da2c5f870c6677dfd43e008e670a3067aef8d
    Allow to use propagated field trials in VideoDecoderSoftwareFallbackWrapper

    Bug: webrtc:15791
    Change-Id: Ida5e1c6f46e5aa9530af441b345abb80d2a5349e
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339862
    Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
    Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41760}
2024-04-04 14:06:54 +02:00
Andreas Pehrson
8ec5144c14 Bug 1888181 - Vendor libwebrtc from 2bfb5db548
Upstream commit: https://webrtc.googlesource.com/src/+/2bfb5db548f1576ba0de5b4f495621ec18d314fd
    dcsctp: Update zero checksum option to v-06 draft

    https://datatracker.ietf.org/doc/draft-ietf-tsvwg-sctp-zero-checksum/06/

    The previous implementation was for version 00, and since then changes
    have been made. The chunk that is used to negotiate this capability has
    now grown to include an additional property - the sender's alternate
    error detection method.

    Bug: webrtc:14997
    Change-Id: I78043d187b79f40bbadbcba02eae6eedf54f30f9
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/336380
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Victor Boivie <boivie@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41759}
2024-04-04 14:05:31 +02:00
Andreas Pehrson
aa7fd90a7b Bug 1888181 - Vendor libwebrtc from c49da7a58b
Upstream commit: https://webrtc.googlesource.com/src/+/c49da7a58be7a9e96dbb61805b3bfa7cb7387fbd
    Update WebRTC code version (2024-02-18T04:06:34).

    Bug: None
    Change-Id: I870b164cf955e97a1d999f0cdad393ad5a2425c3
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339925
    Bot-Commit: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41758}
2024-04-04 14:04:11 +02:00
Andreas Pehrson
ed4d8f415b Bug 1888181 - Vendor libwebrtc from 0ba663c245
Upstream commit: https://webrtc.googlesource.com/src/+/0ba663c245d336997dc912ba11dd3add0c310e0c
    Change a few uses of Candidate::type() to Candidate::type_name()

    Switch to type_name() for things like logging since `type()` will
    change to returning an enumeration value.

    The functional change that this has is that log statements and
    Connection::ToString() (used for logging) will contain "host"
    instead of "local" and "srflx" instead of "stun".

    Bug: webrtc:15846
    Change-Id: I35c50d026e4578a25d51765d59c6f2e01b850c94
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339180
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41757}
2024-04-04 14:02:50 +02:00
Andreas Pehrson
73ecf6b182 Bug 1888181 - Vendor libwebrtc from 600503ae26
Upstream commit: https://webrtc.googlesource.com/src/+/600503ae26ae8bd4aed4dc85e39f0b3ba34d36dc
    Update WebRTC code version (2024-02-17T04:11:12).

    Bug: None
    Change-Id: I0c27fb3042201bfc36f9be003515f79303aa0d63
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339890
    Bot-Commit: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41756}
2024-04-04 14:01:34 +02:00
Andreas Pehrson
967aa4af7f Bug 1888181 - Vendor libwebrtc from 052bc3af92
Upstream commit: https://webrtc.googlesource.com/src/+/052bc3af924057df8e67e31893968f35f3c4ac30
    Field trial to control SVC frame dropping mode in libvpx VP9 encoder

    Example: "WebRTC-LibvpxVp9Encoder-SvcFrameDropConfig/Enabled,layer_drop_mode:1,max_consec_drop:7/"

    It is only possible to enable LAYER_DROP (layer_drop_mode=1) for now. All other modes are ignored. Max consecutive frame drops (max_consec_drop) value from the field is always applied if the field trial is enabled.

    LAYER_DROP requires flexible mode (is_flexible_mode_=true) which can be enabled by means of WebRTC-Vp9InterLayerPred: https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/media/engine/webrtc_video_engine.cc;l=976

    Bug: webrtc:15827, b/320629637
    Change-Id: I9c4d4838b11547e608d863198b109cb1485902d6
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/335041
    Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
    Reviewed-by: Erik Språng <sprang@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41755}
2024-04-04 14:00:09 +02:00
Andreas Pehrson
5575cf1c20 Bug 1888181 - Vendor libwebrtc from 54d9cd002c
Upstream commit: https://webrtc.googlesource.com/src/+/54d9cd002cef2cc0401831ef22bc79d38f2d7548
    Update iOS dimension to have more machines available.

    https://chrome-swarming.appspot.com/botlist?c=id&c=task&c=os&c=status&d=asc&f=pool%3Achrome.tests&f=device_status%3Aavailable&f=os%3AiOS-16.7.1&k=os&s=id

    Change-Id: I418dcb61d7661ef98122cdea6c691c4994e6afab
    Bug: None
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339866
    Reviewed-by: Manashi Sarkar <manashi@google.com>
    Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
    Commit-Queue: Jeremy Leconte <jleconte@google.com>
    Cr-Commit-Position: refs/heads/main@{#41754}
2024-04-04 13:58:53 +02:00
Andreas Pehrson
639f5c3255 Bug 1888181 - Vendor libwebrtc from 8bfc3e99a6
Upstream commit: https://webrtc.googlesource.com/src/+/8bfc3e99a6bac2e9c0f9c5db620c177164e417fb
    Fix variant name for iOS simulator 17.4.

    Change-Id: I66b00b360d8eace858046d73f40c7eac57375e7d
    Bug: None
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339843
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Jeremy Leconte <jleconte@google.com>
    Cr-Commit-Position: refs/heads/main@{#41753}
2024-04-04 13:57:41 +02:00
Andreas Pehrson
cb2de60f20 Bug 1888181 - Vendor libwebrtc from 85b405b798
Upstream commit: https://webrtc.googlesource.com/src/+/85b405b7989b49becdc41aa5813a90aedc23f534
    Switch all Linux tasks from Focal to Jammy (except *san).

    Bug: b/325441006
    Change-Id: I761a84b8e3570d107b82280c1c7870b982bbc3f0
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339865
    Reviewed-by: Jeremy Leconte <jleconte@google.com>
    Commit-Queue: Mirko Bonadei <mbonadei@google.com>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41752}
2024-04-04 13:56:28 +02:00
Andreas Pehrson
d81d56837b Bug 1888181 - Vendor libwebrtc from 1b52d5641e
Upstream commit: https://webrtc.googlesource.com/src/+/1b52d5641e062bf56f1f7b40fd980b8b9e9f2679
    Fix generate_buildbot_json and switch to ios_runtime_cache_17_4.

    When running it, even without changes at HEAD I got:

    ```
    KeyError: 'ios_runtime_cache_17_0'
    ```

    Bug: b/325441006
    Change-Id: I7ea236ccc1f7439d7750208260b01d7636db4ae5
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339842
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Reviewed-by: Jeremy Leconte <jleconte@google.com>
    Cr-Commit-Position: refs/heads/main@{#41751}
2024-04-04 13:55:11 +02:00
Andreas Pehrson
7fccccc161 Bug 1888181 - Vendor libwebrtc from 6596134fad
Upstream commit: https://webrtc.googlesource.com/src/+/6596134fade8d52750fff13fdf1b217f41992904
    Update WebRTC code version (2024-02-16T04:14:44).

    Bug: None
    Change-Id: I736a684aae87f4b745520787cf2891787250061c
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339829
    Bot-Commit: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41750}
2024-04-04 13:53:50 +02:00
Andreas Pehrson
fd12776e13 Bug 1888181 - Vendor libwebrtc from 62cbdcea05
Upstream commit: https://webrtc.googlesource.com/src/+/62cbdcea050529a5cd18d5e82dc3c8f6997b09fc
    Allow getDisplayMedia capture HDR monitor.

    The code uses IDXGIOutput1::DuplicateOutput for screen capture and
    it allows only DXGI_FORMAT_B8G8R8A8_UNORM texture format, which
    works on most monitor cases except HDR monitor.

    HDR mointor returns type of DXGI_FORMAT_R16G16B16A16_FLOAT.

    These two types of DXGI_FORMAT_B8G8R8A8_UNORM and
    DXGI_FORMAT_R16G16B16A16_FLOAT are all formats that DuplicateOutput
    returns based on Windows OS team.

    The fix is to add allowed format of DXGI_FORMAT_R16G16B16A16_FLOAT.

    Manually repro the issue and validated the fix.

    Bug: chromium:40787684
    Change-Id: I0a7be38b14a06261d631d2db172f12725edbbf1f
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339621
    Reviewed-by: Mark Foltz <mfoltz@chromium.org>
    Reviewed-by: Alexander Cooper <alcooper@chromium.org>
    Commit-Queue: Alexander Cooper <alcooper@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#41749}
2024-04-04 13:52:28 +02:00
Andreas Pehrson
352d3ac46e Bug 1888181 - Vendor libwebrtc from 7e0bd7aaaf
Upstream commit: https://webrtc.googlesource.com/src/+/7e0bd7aaaf52a6a4bd6c3f84c107071cd2827299
    Reland "Add HEVC support for h264_packet_buffer."

    This is a reland of commit a2655449ee310704ee2053fd6d43a5ab7002b755

    This CL guards H265 header behind RTC_ENABLE_H265.

    Original change's description:
    > Add HEVC support for h264_packet_buffer.
    >
    > Renamed to h26x_packet_buffer as it also supports HEVC now. For HEVC,
    > start code is added by depacktizer, and remote endpoint must send
    > sequence and picture information in-band.
    >
    > Co-authored-by: Qiujiao Wu <qiujiao.wu@intel.com>
    >
    > Bug: webrtc:13485
    > Change-Id: I321cb223357d8d15da95cec80ec0c3a43c26734e
    > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/333863
    > Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    > Commit-Queue: Philip Eliasson <philipel@webrtc.org>
    > Cr-Commit-Position: refs/heads/main@{#41739}

    Bug: webrtc:13485
    Change-Id: I478e0ab88adcef34100670a90b12251ab3c9b623
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339822
    Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Philip Eliasson <philipel@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41748}
2024-04-04 13:50:17 +02:00
Andreas Pehrson
3bd9b0fbc9 Bug 1888181 - Vendor libwebrtc from 46364195d3
Upstream commit: https://webrtc.googlesource.com/src/+/46364195d35c7e56af7fb876e04ff9afd7409c44
    Propagate webrtc::Environment through MultiplexDecoderAdapter

    Bug: webrtc:15791
    Change-Id: Ibe8fdc45722409b2cf6608ea6d8da2ea7e3472c2
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338621
    Reviewed-by: Erik Språng <sprang@webrtc.org>
    Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41747}
2024-04-04 13:48:00 +02:00
Andreas Pehrson
747d5aed9b Bug 1888181 - Vendor libwebrtc from ce1271af8f
Upstream commit: https://webrtc.googlesource.com/src/+/ce1271af8fabfbb0c13abf28180095def22552c1
    Do not guard AV1 SVC tests on VP9 define

    BUG=None

    Change-Id: Id10bb49c266319eb387f0dd2e9c4327b8a5eb944
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339800
    Reviewed-by: Florent Castelli <orphis@webrtc.org>
    Commit-Queue: Philipp Hancke <phancke@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#41746}
2024-04-04 13:46:39 +02:00
Andreas Pehrson
d6405ea813 Bug 1888181 - Vendor libwebrtc from 2eee89e904
Upstream commit: https://webrtc.googlesource.com/src/+/2eee89e9044f51263a9635febbb923af73925439
    Cleanup webrtc::Environment propagation through java wrappers

    Force and thus guarantee VideoDecoder created through java wrappers get access to the webrtc::Environment

    Bug: webrtc:15791
    Change-Id: I3f145937c0b914c8e34b24e1ecc55da756551069
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338441
    Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
    Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41745}
2024-04-04 13:45:25 +02:00
Andreas Pehrson
0d6bd4cd4d Bug 1888181 - Vendor libwebrtc from 45242adc4c
Upstream commit: https://webrtc.googlesource.com/src/+/45242adc4cbda3e56d949d92727122abaa3d6fd0
    Add field trial property alloc_current_bwe_limit

    The new field trial can be used to ensure probes are limited by the current BWE and does not automatically send a probe at the new max rate.

    Also removes unused
      FieldTrialFlag allocation_allow_further_probing;
      FieldTrialParameter<DataRate> allocation_probe_max;



    Bug: webrtc:14928
    Change-Id: I0d5c350c0231ca0600033ad8211dca0574104201
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339840
    Commit-Queue: Per Kjellander <perkj@webrtc.org>
    Reviewed-by: Diep Bui <diepbp@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41744}
2024-04-04 13:44:05 +02:00
Andreas Pehrson
78620e2cb2 Bug 1888181 - Vendor libwebrtc from 6a8236617d
Upstream commit: https://webrtc.googlesource.com/src/+/6a8236617dd9416ea0fe7767166cc8e8c729d5e6
    Reject SDP with duplicate msid lines

    This is an obscure error that was found by a fuzzer.

    Bug: webrtc:15845
    Change-Id: I3509fa264a3af6f0f5e8e6b75a8b7dcd8fb0da1a
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339681
    Reviewed-by: Florent Castelli <orphis@webrtc.org>
    Commit-Queue: Harald Alvestrand <hta@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41743}
2024-04-04 13:42:41 +02:00
Andreas Pehrson
84e4c16777 Bug 1888181 - Vendor libwebrtc from 611f21d0d4
We already cherry-picked this when we vendored a2655449ee.

Upstream commit: https://webrtc.googlesource.com/src/+/611f21d0d4c994b791db6ea90f484c83237f63f2
    Revert "Add HEVC support for h264_packet_buffer."

    This reverts commit a2655449ee310704ee2053fd6d43a5ab7002b755.

    Reason for revert: H265 tests must be hidden behind RTC_ENABLE_H265.

    Original change's description:
    > Add HEVC support for h264_packet_buffer.
    >
    > Renamed to h26x_packet_buffer as it also supports HEVC now. For HEVC,
    > start code is added by depacktizer, and remote endpoint must send
    > sequence and picture information in-band.
    >
    > Co-authored-by: Qiujiao Wu <qiujiao.wu@intel.com>
    >
    > Bug: webrtc:13485
    > Change-Id: I321cb223357d8d15da95cec80ec0c3a43c26734e
    > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/333863
    > Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    > Commit-Queue: Philip Eliasson <philipel@webrtc.org>
    > Cr-Commit-Position: refs/heads/main@{#41739}

    Bug: webrtc:13485
    Change-Id: I64660d73ef0d790b25622ce882aab3db63facf26
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339861
    Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Owners-Override: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41742}
2024-04-04 13:41:22 +02:00
Andreas Pehrson
552ce561da Bug 1888181 - Vendor libwebrtc from b158537a4f
Upstream commit: https://webrtc.googlesource.com/src/+/b158537a4f3ee38b6e87dd538ecdd3be2fd297e7
    Allow to propagate field trials into Vp8 Decoder

    Bug: webrtc:15791
    Change-Id: I0cd279006924c7a4859697b26a2271c3dc63ea6d
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/337400
    Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41741}
2024-04-04 13:39:07 +02:00
Andreas Pehrson
079bfe6629 Bug 1888181 - Vendor libwebrtc from f7b22c66ff
Upstream commit: https://webrtc.googlesource.com/src/+/f7b22c66ff7ef9ea9f4688812cbbab2fd48cf098
    Add Candidate::type_name()

    Candidate::type() is currently how the name of the type is fetched,
    but that getter returns a non-standard type name.

    Instead, I'm adding a new getter, type_name(), will follow up with
    updating dependent code that needs the string, to use type_name (and
    adapt to potential dependency on "local" or "stun") and then switch
    type() to be enum based.

    Also adding a test file for Candidate with a couple of basic tests to
    start with.

    Bug: webrtc:15846
    Change-Id: I9b78b2405a9f962a3c07eaa8e72a79854c6f5ceb
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339660
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41740}
2024-04-04 13:36:57 +02:00
Andreas Pehrson
0688e4536f Bug 1888181 - Vendor libwebrtc from a2655449ee
Essentially a no-op since we're going to see this change
reverted when we vendor in 611f21d0d4.

Upstream commit: https://webrtc.googlesource.com/src/+/a2655449ee310704ee2053fd6d43a5ab7002b755
    Add HEVC support for h264_packet_buffer.

    Renamed to h26x_packet_buffer as it also supports HEVC now. For HEVC,
    start code is added by depacktizer, and remote endpoint must send
    sequence and picture information in-band.

    Co-authored-by: Qiujiao Wu <qiujiao.wu@intel.com>

    Bug: webrtc:13485
    Change-Id: I321cb223357d8d15da95cec80ec0c3a43c26734e
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/333863
    Reviewed-by: Philip Eliasson <philipel@webrtc.org>
    Commit-Queue: Philip Eliasson <philipel@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41739}
2024-04-04 13:35:36 +02:00
Andreas Pehrson
d4151f9a15 Bug 1888181 - Vendor libwebrtc from 4efc830e53
Upstream commit: https://webrtc.googlesource.com/src/+/4efc830e53da5b83eb1f06ac6eac0a0d8a8664a4
    Provide test output path with `OutputPathWithRandomDirectory` 1/n

    First commit in a series of commits to wire up the test output path utility that adds a random directory in the path, for problematic tests that run in concurrent execution environments.

    Bug: webrtc:15833
    Change-Id: I5e5b3940007be773d77dbbfc953efa810e4e3ea9
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339522
    Reviewed-by: Artem Titov <titovartem@webrtc.org>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41738}
2024-04-04 13:33:23 +02:00
Andreas Pehrson
ebe7b9d9e9 Bug 1888181 - Vendor libwebrtc from 3e9e4e7c9c
Upstream commit: https://webrtc.googlesource.com/src/+/3e9e4e7c9ce4d0cfe51d393c52a24c023474e761
    Update WebRTC code version (2024-02-15T04:07:08).

    Bug: None
    Change-Id: I0ee54527ed5e6d8c40249c0a7c0fed159a60287c
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339720
    Commit-Queue: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Bot-Commit: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41737}
2024-04-04 13:32:03 +02:00
Andreas Pehrson
076a897c10 Bug 1888181 - Vendor libwebrtc from 414c94290a - moz.build file updates 2024-04-15 12:26:38 +02:00
Andreas Pehrson
4ecaa78de7 Bug 1888181 - Vendor libwebrtc from 414c94290a
Upstream commit: https://webrtc.googlesource.com/src/+/414c94290af044991c7e2d1aadbec9dafb9ee64e
    Reland "Extends WebRTC logs for software encoder fallback"

    This is a reland of commit 050ffefd854f8a57071992238723259e9ae0d85a

    Original change's description:
    > Extends WebRTC logs for software encoder fallback
    >
    > This CL extends logging related to HW->SW fallbacks on the encoder
    > side in WebRTC. The goal is to make it easier to track down the
    > different steps taken when setting up the video encoder and why/when
    > HW encoding fails.
    >
    > Current logs are added on several lines which makes regexp searching
    > difficult. This CL adds all related information on one line instead.
    >
    > Three new search tags are also added VSE (VideoStreamEncoder), VESFW
    > (VideoEncoderSoftwareFallbackWrapper) and SEA (SimulcastEncoderAdapter). The idea is to allow searching for the tags to see correlated logs.
    >
    > It has been verified that these added logs also show up in WebRTC
    > logs in Meet.
    >
    > Logs from the GPU process are not included due to the sandboxed
    > nature which makes it much more complex to add to the native
    > WebRTC log. I think that these simple logs will provide value as is.
    >
    > Example: https://gist.github.com/henrik-and/41946f7f0b10774241bd14d7687f770b
    >
    > Bug: b/322132132
    > Change-Id: Iec58c9741a9dd6bab3236a88e9a6e45440f5d980
    > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339260
    > Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
    > Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
    > Reviewed-by: Henrik Boström <hbos@webrtc.org>
    > Cr-Commit-Position: refs/heads/main@{#41733}

    NOTRY=true

    Bug: b/322132132
    Change-Id: I25dd34b9ba59ea8502e47b4c89cd111430636e08
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339680
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41736}
2024-04-04 10:45:00 +02:00
Andreas Pehrson
779f33ac44 Bug 1888181 - Vendor libwebrtc from 23c32da48a
We already cherry-picked this when we vendored 050ffefd85.

Upstream commit: https://webrtc.googlesource.com/src/+/23c32da48ae3f5f146dbd60b8b7fe4416f3750b4
    Revert "Extends WebRTC logs for software encoder fallback"

    This reverts commit 050ffefd854f8a57071992238723259e9ae0d85a.

    Reason for revert: Breaks downstream project.

    Original change's description:
    > Extends WebRTC logs for software encoder fallback
    >
    > This CL extends logging related to HW->SW fallbacks on the encoder
    > side in WebRTC. The goal is to make it easier to track down the
    > different steps taken when setting up the video encoder and why/when
    > HW encoding fails.
    >
    > Current logs are added on several lines which makes regexp searching
    > difficult. This CL adds all related information on one line instead.
    >
    > Three new search tags are also added VSE (VideoStreamEncoder), VESFW
    > (VideoEncoderSoftwareFallbackWrapper) and SEA (SimulcastEncoderAdapter). The idea is to allow searching for the tags to see correlated logs.
    >
    > It has been verified that these added logs also show up in WebRTC
    > logs in Meet.
    >
    > Logs from the GPU process are not included due to the sandboxed
    > nature which makes it much more complex to add to the native
    > WebRTC log. I think that these simple logs will provide value as is.
    >
    > Example: https://gist.github.com/henrik-and/41946f7f0b10774241bd14d7687f770b
    >
    > Bug: b/322132132
    > Change-Id: Iec58c9741a9dd6bab3236a88e9a6e45440f5d980
    > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339260
    > Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
    > Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
    > Reviewed-by: Henrik Boström <hbos@webrtc.org>
    > Cr-Commit-Position: refs/heads/main@{#41733}

    Bug: b/322132132
    Change-Id: I24d0a4e71a43ac192485f1af208563a51d919865
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339661
    Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
    Owners-Override: Mirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41735}
2024-04-04 10:43:33 +02:00
Andreas Pehrson
898a579bbc Bug 1888181 - Vendor libwebrtc from 7fc9535d8b
Upstream commit: https://webrtc.googlesource.com/src/+/7fc9535d8bd8d159db6802bcc6d52e75d85c99c8
    Add trace event with qp value to VideoStreamEncoder

    Bug: None
    Change-Id: I11c88a948b1940cac91ac6132e44107db0c5c46a
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338980
    Reviewed-by: Erik Språng <sprang@webrtc.org>
    Commit-Queue: Johannes Kron <kron@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41734}
2024-04-04 10:42:09 +02:00
Andreas Pehrson
51733b73ee Bug 1888181 - Vendor libwebrtc from 050ffefd85
Essentially a no-op since we're going to see this change
reverted when we vendor in 23c32da48a.

Upstream commit: https://webrtc.googlesource.com/src/+/050ffefd854f8a57071992238723259e9ae0d85a
    Extends WebRTC logs for software encoder fallback

    This CL extends logging related to HW->SW fallbacks on the encoder
    side in WebRTC. The goal is to make it easier to track down the
    different steps taken when setting up the video encoder and why/when
    HW encoding fails.

    Current logs are added on several lines which makes regexp searching
    difficult. This CL adds all related information on one line instead.

    Three new search tags are also added VSE (VideoStreamEncoder), VESFW
    (VideoEncoderSoftwareFallbackWrapper) and SEA (SimulcastEncoderAdapter). The idea is to allow searching for the tags to see correlated logs.

    It has been verified that these added logs also show up in WebRTC
    logs in Meet.

    Logs from the GPU process are not included due to the sandboxed
    nature which makes it much more complex to add to the native
    WebRTC log. I think that these simple logs will provide value as is.

    Example: https://gist.github.com/henrik-and/41946f7f0b10774241bd14d7687f770b

    Bug: b/322132132
    Change-Id: Iec58c9741a9dd6bab3236a88e9a6e45440f5d980
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339260
    Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
    Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
    Reviewed-by: Henrik Boström <hbos@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41733}
2024-04-04 10:40:42 +02:00
Andreas Pehrson
74d0a8bab8 Bug 1888181 - Vendor libwebrtc from 7a6a8ebf23
Upstream commit: https://webrtc.googlesource.com/src/+/7a6a8ebf238469cd18bd8141d04db7f8f619a86f
    sdp: backfill default codec parameters for H265

    with default values for level-id and tx-mode defined in
      https://datatracker.ietf.org/doc/html/draft-aboba-avtcore-hevc-webrtc

    BUG=webrtc:15703

    Change-Id: I07d77d69c6376313e693e8ddda1cc0135033549a
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338620
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
    Commit-Queue: Philipp Hancke <phancke@microsoft.com>
    Cr-Commit-Position: refs/heads/main@{#41732}
2024-04-04 10:39:20 +02:00
Andreas Pehrson
2391a19406 Bug 1888181 - Vendor libwebrtc from 2bd4129e91
Upstream commit: https://webrtc.googlesource.com/src/+/2bd4129e910683af471eefad320c755af4376e4a
    Set scoped field trials in encode/decode test

    Since not all codecs read field trials from the environment yet.

    Bug: webrtc:14852
    Change-Id: Ia2477c41d09dabf91f47c59eb3139d6d6a711548
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339380
    Auto-Submit: Sergey Silkin <ssilkin@webrtc.org>
    Reviewed-by: Åsa Persson <asapersson@webrtc.org>
    Commit-Queue: Åsa Persson <asapersson@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41731}
2024-04-04 10:37:14 +02:00
Andreas Pehrson
d6f9d2249f Bug 1888181 - Vendor libwebrtc from 94c3328b61
Upstream commit: https://webrtc.googlesource.com/src/+/94c3328b6138f75d0f027e04b7d9570cc479324f
    Provide unified solution for dir name randomization in tests

    This approach actually wraps the unique identifier generation into the
    function that provides the output path for a test.
    This way we don't need to add `CreateRandomUuid()` everywhere that we
    have `test::OutputPath` and instead just rename to
    `test::OutputPathRandomDir`

    Bug: webrtc:15833
    Change-Id: Ic9b69b5b599727f07b2906569a84a40edeecd1a0
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338645
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Commit-Queue: Jeremy Leconte <jleconte@google.com>
    Reviewed-by: Artem Titov <titovartem@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41730}
2024-04-04 10:35:07 +02:00
Andreas Pehrson
81fba3b333 Bug 1888181 - Vendor libwebrtc from 495e23e60f
Upstream commit: https://webrtc.googlesource.com/src/+/495e23e60f5d01314cc69b23501297c7c07b0257
    Update WebRTC code version (2024-02-14T04:12:34).

    Bug: None
    Change-Id: I7c64b17a0a0a05e24b11fe19af8f1954f62837d2
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339643
    Bot-Commit: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com <webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41729}
2024-04-04 10:33:42 +02:00
Andreas Pehrson
2eff7a1396 Bug 1888181 - Vendor libwebrtc from d99fb2f6ff
Upstream commit: https://webrtc.googlesource.com/src/+/d99fb2f6ffea7d60dd1ffa5d6e29ae58abbd834a
    Roll chromium_revision 4906525a63..a4279f2842 (1259697:1259805)

    Change log: 4906525a63..a4279f2842
    Full diff: 4906525a63..a4279f2842

    Changed dependencies
    * src/build: a301b4f2a6..a3566ffdee
    * src/ios: f3dc4ca279..37d33be47e
    * src/testing: a87036f3ca..a7e90605df
    * src/third_party: 0c4c3fa25c..121de111a9
    * src/third_party/androidx: f2NTXeY1WbJ_lRwpAyZWORm3Ho9qRx28GRayw1ol5x8C..W2mpTbVe6yo3_GJiaoEVjCGnpicqsSrxcRMEADDJzMMC
    * src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/99cae5876c..c712e9cc34
    * src/third_party/kotlin_stdlib: 7f5xFu_YQrbg_vacQ5mMcUFIkMPpvM_mQ8QERRKYBvUC..-uFeIws_FQzyqmgZlGL37ooRLAD8mwClD33O8rZwnTsC
    * src/third_party/r8: szZgxadOOC_Yfq3DhP5R0WR2LMRiVMVrt71WNfL5taIC..tp4vVuXzmyHJxDFlwxDb7RYZLLEufc3EnGTyOTCTNkgC
    * src/tools: 8b818c04f0..2b9f1d699f
    DEPS diff: 4906525a63..a4279f2842/DEPS

    No update to Clang.

    BUG=None

    Change-Id: I289ba81e7a357b058915ab8557ee50a89c707ef2
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339580
    Bot-Commit: Autoroller <chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: Autoroller <chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41728}
2024-04-04 10:32:18 +02:00
Andreas Pehrson
9349df91c4 Bug 1888181 - Vendor libwebrtc from 14d7d2d845
Upstream commit: https://webrtc.googlesource.com/src/+/14d7d2d845827fbae56d054805e1a4878875046f
    Add an option to allow pacing at loss based estimate when network bandwidth is loss limited.

    Add a small clean up in LossBasedBandwidthEstimatorV2ReadyForUse since IsReady() includes IsEnabled().

    Bug: webrtc:12707
    Change-Id: I20dfeb2ab31e7724041f89af9f312211a3ae3d23
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339521
    Commit-Queue: Diep Bui <diepbp@webrtc.org>
    Reviewed-by: Per Kjellander <perkj@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#41727}
2024-04-04 10:30:56 +02:00
Andreas Pehrson
527da77e05 Bug 1888181 - Vendor libwebrtc from e5cd905b9e
Upstream commit: https://webrtc.googlesource.com/src/+/e5cd905b9eb779fb205e8d2acedd44c09d9aad85
    Roll chromium_revision 7d6bb2c760..4906525a63 (1259552:1259697)

    Change log: 7d6bb2c760..4906525a63
    Full diff: 7d6bb2c760..4906525a63

    Changed dependencies
    * src/base: 6c5ef966eb..fd5eca261f
    * src/build: fcd7410768..a301b4f2a6
    * src/testing: 13076206a3..a87036f3ca
    * src/third_party: a043caba1c..0c4c3fa25c
    * src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/d80f7d1ae4..99cae5876c
    * src/tools: 6d4102387b..8b818c04f0
    DEPS diff: 7d6bb2c760..4906525a63/DEPS

    No update to Clang.

    BUG=None

    Change-Id: I5da5f4efa5c7b441752d8605f8256b33b85e0413
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339500
    Bot-Commit: Autoroller <chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com>
    Commit-Queue: Autoroller <chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41726}
2024-04-04 10:29:34 +02:00
Andreas Pehrson
0ddeb1def6 Bug 1888181 - Vendor libwebrtc from 1e7a6f3b6a
We already cherry-picked this when we vendored 1cce1d7ddc.

Upstream commit: https://webrtc.googlesource.com/src/+/1e7a6f3b6a8eee7efcb129eec10fe734d718ebc8
    Revert "Make setCodecPreferences only look at receive codecs"

    This reverts commit 1cce1d7ddcbde3a3648007b5a131bd0c2638724b.

    Reason for revert: Breaks WPTs

    Original change's description:
    > Make setCodecPreferences only look at receive codecs
    >
    > which is what is noted in JSEP:
    >   https://www.rfc-editor.org/rfc/rfc8829.html#name-setcodecpreferences
    >
    > Some W3C spec modifications are required since the W3C specification
    > currently takes into account send codecs as well.
    >
    > Spec issue:
    >   https://github.com/w3c/webrtc-pc/issues/2888
    > Spec PR:
    >  https://github.com/w3c/webrtc-pc/pull/2926
    >
    > setCodecPreferences continues to modify the codecs in an offer.
    >
    > Also rename RtpSender::SetCodecPreferences to RtpSender::SetSendCodecs for consistent semantics.
    >
    > BUG=webrtc:15396
    >
    > Change-Id: I1e8fbe77cb2670575578a777ed1336567a1e4031
    > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/328780
    > Reviewed-by: Henrik Boström <hbos@webrtc.org>
    > Commit-Queue: Philipp Hancke <phancke@microsoft.com>
    > Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    > Cr-Commit-Position: refs/heads/main@{#41719}

    Bug: webrtc:15396
    Change-Id: I7b545e91f820c3affc39841c6e93939eac75c363
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/339520
    Reviewed-by: Harald Alvestrand <hta@webrtc.org>
    Commit-Queue: Harald Alvestrand <hta@webrtc.org>
    Owners-Override: Henrik Boström <hbos@webrtc.org>
    Reviewed-by: Henrik Boström <hbos@webrtc.org>
    Auto-Submit: Henrik Boström <hbos@webrtc.org>
    Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#41725}
2024-04-04 10:28:03 +02:00