Delete VCMEncodedFrame::VerifyAndAllocate
And mark EncodedImage::Allocate as deprecated. Bug: webrtc:9378 Change-Id: I03ce907fa6b87803ddb72f548f60a9bf1b7c317d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155163 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29383}
This commit is contained in:
@ -521,14 +521,13 @@ TEST(RtpVideoSenderTest, EarlyRetransmits) {
|
||||
kPayloadType, {});
|
||||
test.router()->SetActive(true);
|
||||
|
||||
constexpr uint8_t kPayload = 'a';
|
||||
const uint8_t kPayload[1] = {'a'};
|
||||
EncodedImage encoded_image;
|
||||
encoded_image.SetTimestamp(1);
|
||||
encoded_image.capture_time_ms_ = 2;
|
||||
encoded_image._frameType = VideoFrameType::kVideoFrameKey;
|
||||
encoded_image.Allocate(1);
|
||||
encoded_image.data()[0] = kPayload;
|
||||
encoded_image.set_size(1);
|
||||
encoded_image.SetEncodedData(
|
||||
EncodedImageBuffer::Create(kPayload, sizeof(kPayload)));
|
||||
encoded_image.SetSpatialIndex(0);
|
||||
|
||||
CodecSpecificInfo codec_specific;
|
||||
|
||||
Reference in New Issue
Block a user