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:
@ -159,14 +159,4 @@ void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header) {
|
||||
}
|
||||
}
|
||||
|
||||
void VCMEncodedFrame::VerifyAndAllocate(size_t minimumSize) {
|
||||
size_t old_capacity = capacity();
|
||||
if (minimumSize > old_capacity) {
|
||||
// TODO(nisse): EncodedImage::Allocate is implemented as a realloc
|
||||
// operation, and is deprecated. Refactor to use EncodedImageBuffer::Realloc
|
||||
// instead.
|
||||
Allocate(minimumSize);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user