Revert "Temporary add 'RTPVideoHeaderH264::nalus_length'."

This reverts commit 04dd95fcac549fbdc330cee1de65074961db5934.

Reason for revert: code has been updated

Original change's description:
> Temporary add 'RTPVideoHeaderH264::nalus_length'.
>
> This is a forward fix for https://webrtc-review.googlesource.com/c/src/+/354622 that breaks client code using nalus_length.
>
> No-Try: true
> Change-Id: Ic0fc41696e408adefe4eb8792150a64b1eab49da
> Bug: None
> Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/354840
> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
> Commit-Queue: Jeremy Leconte <jleconte@google.com>
> Owners-Override: Jeremy Leconte <jleconte@google.com>
> Cr-Commit-Position: refs/heads/main@{#42493}

Bug: None
Change-Id: I1b65fe94ca07efdb8c7643e2ac46517050095018
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/354860
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42496}
This commit is contained in:
Jeremy Leconte 2024-06-17 10:31:59 +00:00 committed by WebRTC LUCI CQ
parent c24b2d508c
commit a0b22af9e1
2 changed files with 0 additions and 4 deletions

View File

@ -221,7 +221,6 @@ absl::optional<VideoRtpDepacketizer::ParsedRtpPayload> ProcessStapAOrSingleNalu(
}
h264_header.nalus.push_back(nalu);
++h264_header.nalus_length;
}
return parsed_payload;
@ -280,7 +279,6 @@ absl::optional<VideoRtpDepacketizer::ParsedRtpPayload> ParseFuaNalu(
h264_header.nalu_type = original_nal_type;
if (first_fragment) {
h264_header.nalus = {nalu};
h264_header.nalus_length = 1;
}
return parsed_payload;
}

View File

@ -83,8 +83,6 @@ struct RTPVideoHeaderH264 {
// The packetization type of this buffer - single, aggregated or fragmented.
H264PacketizationTypes packetization_type;
std::vector<NaluInfo> nalus;
// TODO - jleconte: Remove 'nalus_length' once all the code has been migrated.
size_t nalus_length;
// The packetization mode of this transport. Packetization mode
// determines which packetization types are allowed when packetizing.
H264PacketizationMode packetization_mode;