buffered_frame_decryptor: dont assume GFD is present
BUG=webrtc:12995 Change-Id: I94aad0d419759d2ed04c5b1be55f0a0cea26b3f1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227220 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34671}
This commit is contained in:
parent
6dd6651852
commit
a53d83d813
@ -62,11 +62,6 @@ BufferedFrameDecryptor::FrameDecision BufferedFrameDecryptor::DecryptFrame(
|
||||
"stream. Stashing frame.";
|
||||
return FrameDecision::kStash;
|
||||
}
|
||||
// When using encryption we expect the frame to have the generic descriptor.
|
||||
if (frame->GetRtpVideoHeader().generic == absl::nullopt) {
|
||||
RTC_LOG(LS_ERROR) << "No generic frame descriptor found dropping frame.";
|
||||
return FrameDecision::kDrop;
|
||||
}
|
||||
// Retrieve the maximum possible size of the decrypted payload.
|
||||
const size_t max_plaintext_byte_size =
|
||||
frame_decryptor_->GetMaxPlaintextByteSize(cricket::MEDIA_TYPE_VIDEO,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user