From 27653f10dc419dd6197f4bbf9d59758ad2d91332 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 9 May 2021 19:43:26 +1000 Subject: [PATCH] frame: use correct linesize value for allocations OOF NO WONDER MEMORY USAGE IS SO HIGH --- app/codec/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;