diff --git a/app/codec/frame.cpp b/app/codec/frame.cpp index 9f3cb2bc5..8701ce2ba 100644 --- a/app/codec/frame.cpp +++ b/app/codec/frame.cpp @@ -130,7 +130,7 @@ bool Frame::allocate() return true; } - data_size_ = VideoParams::GetBufferSize(linesize_, height(), params_.format(), params_.channel_count()); + data_size_ = linesize_ * height(); data_ = FrameManager::Allocate(data_size_); return true;