Refactor legacy FrameBuffer to use EncodedImageBuffer::Realloc
Preparation for deleting VCMEncodedFrame::VerifyAndAllocate and EncodedImage::Allocate. Bug: webrtc:9378 Change-Id: If7c16061962bbd58c3e7d5720189854e00a3d7bf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/154570 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29339}
This commit is contained in:
@ -266,7 +266,6 @@ void VP9EncoderImpl::SetFecControllerOverride(
|
||||
int VP9EncoderImpl::Release() {
|
||||
int ret_val = WEBRTC_VIDEO_CODEC_OK;
|
||||
|
||||
encoded_image_.Allocate(0);
|
||||
if (encoder_ != nullptr) {
|
||||
if (inited_) {
|
||||
if (vpx_codec_destroy(encoder_)) {
|
||||
|
||||
Reference in New Issue
Block a user