Delete few stale TODOs where no action is planned

encrypted_video_payload already allocates enough bytes - first SetSize query such size from the frame_encryptor_

Minimizing VP9 when generic descriptor is used might be harmful in multi-participant scenario where frame needs to be send to a participant without generic descriptor support and thus require complicated restoration of the VP9 specific descriptor.

No-Try: true
Bug: None
Change-Id: I5f2c32c2c9ae745794dfaaa4aec4c5898dff78f7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/293820
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Emil Lundmark <lndmrk@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39327}
This commit is contained in:
Danil Chapovalov 2023-02-16 15:36:32 +01:00 committed by WebRTC LUCI CQ
parent 72b99a1128
commit 3970fa85b3

View File

@ -71,7 +71,6 @@ bool MinimizeDescriptor(RTPVideoHeader* video_header) {
vp8->nonReference = non_reference;
return true;
}
// TODO(danilchap): Reduce vp9 codec specific descriptor too.
return false;
}
@ -624,7 +623,6 @@ bool RTPSenderVideo::SendVideo(
MinimizeDescriptor(&video_header);
}
// TODO(benwright@webrtc.org) - Allocate enough to always encrypt inline.
rtc::Buffer encrypted_video_payload;
if (frame_encryptor_ != nullptr) {
const size_t max_ciphertext_size =