feat(libwebrtc): implement webrtc::rtcp::TransportFeedback::GetBaseSequence #15192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15192"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-02T20:26:05Z.
What
Implements
webrtc::rtcp::TransportFeedback::GetBaseSequence() constin libwebrtc, which threw and was declared without parameters.The module's WebRTC revision lies between M127 and M134, as recorded in the debt file.
transport_feedback.cc(M127, M134) returnsbase_seq_no_at both.transport_feedback.handrtpfb.hare identical, andsrc/RtcpTransportFeedback.cppstarts with the WebRTC notice and the BSD licence.WebRtcRtcpTransportFeedbackcovers the start of the layout:RtcpPacket, thensender_ssrc_at 8 andRtpfb::media_ssrc_at 12;base_seq_no_, theuint16_tthe getter reads, at 16;num_seq_no_,base_time_ticks_,feedback_seq_andinclude_timestamps_up to 25.A null packet throws. It removes 1 export from the inventory.
Tested
Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.guest_webrtc_rtcp_transport_feedbacktest: on a 96-byte packet filled with 0xA5 the getter returns 0, 1, 0x1234 and 0xFFFF as stored, ignores the neighbouring SSRCs and count, and writes nothing; a null packet throwsstd::invalid_argument.ctest -j16on head 0bfebb3872: 3596/3596 pass.check_conventions.py --base upstream/mainpasses.pr_overlap.py: no open pull request implements these functions. The shared lines are the pending-export count indocs/dev/debt/libwebrtc.mdand the source, test and declaration lists inCMakeLists.txtandApi.hpp.main4f41f4c375, head 643692f391, to resolve the conflicts on the sharedCMakeLists.txt,Export.cppand debt-file lines; both sides are kept and the debt count is recomputed fromExport.cpp. Full build andctest -j16: 3796/3800 pass;guest_sce_net,guest_poll,guest_select_waitandguest_memoryfailed under that load, pass when run alone, andmain4f41f4c375passes all 3799 with-j16on the same machine.check_conventions.py --base upstream/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T21:10:17Z.
Review: APPROVED
Matches firmware 13.42's
system/common/lib/libwebrtc.sprx(sha256d59d0caf6967329b39201a2a0bd6df7b994516f21701b9801908db6735ae5314), disassembly only._ZNK6webrtc4rtcp17TransportFeedback15GetBaseSequenceEv(adIMDpQlFr4,0x3cd0c0) is the whole function:A 16-bit read at 16, the PR's
baseSequenceNumberoffset. The null throw stands in for the module's fault.Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto
main:guest_webrtc_rtcp_transport_feedbackpasses, nothing skipped. Withmain'sExport.cppandApi.hpp, the new source doesn't compile against the old parameterless declaration.