tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 428e74644a594d37ac660c3a227d3745f18a40e9
parent 3f41c68712904e822cc098ad76fada1601363ab9
Author: Dan Baker <dbaker@mozilla.com>
Date:   Mon, 27 Oct 2025 14:37:58 -0600

Bug 1995393 - Vendor libwebrtc from 8eaab284f3

Upstream commit: https://webrtc.googlesource.com/src/+/8eaab284f37c8df889ca219ab3a92b0784bf7f38
    Preallocate vector for H265 NALU indices

    Bug: None
    Change-Id: I2bf84be9aee4336b1e4713d3825c1ef8ef674a1c
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/406580
    Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
    Commit-Queue: Björn Terelius <terelius@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45466}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/common_video/h265/h265_common.cc | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor @@ -1,4 +1,4 @@ # ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T20:35:48.512243+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T20:37:46.464583+00:00. # base of lastest vendoring -4b4867dfee +8eaab284f3 diff --git a/third_party/libwebrtc/common_video/h265/h265_common.cc b/third_party/libwebrtc/common_video/h265/h265_common.cc @@ -26,6 +26,7 @@ constexpr uint8_t kNaluTypeMask = 0x7E; std::vector<NaluIndex> FindNaluIndices(ArrayView<const uint8_t> buffer) { std::vector<H264::NaluIndex> indices = H264::FindNaluIndices(buffer); std::vector<NaluIndex> results; + results.reserve(indices.size()); for (auto& index : indices) { results.push_back( {index.start_offset, index.payload_start_offset, index.payload_size});