frame: use correct linesize value for allocations

OOF NO WONDER MEMORY USAGE IS SO HIGH
This commit is contained in:
itsmattkc
2021-05-09 19:43:26 +10:00
parent 6d517a851c
commit 27653f10dc
+1 -1
View File
@@ -130,7 +130,7 @@ bool Frame::allocate()
return true; return true;
} }
data_size_ = VideoParams::GetBufferSize(linesize_, height(), params_.format(), params_.channel_count()); data_size_ = linesize_ * height();
data_ = FrameManager::Allocate(data_size_); data_ = FrameManager::Allocate(data_size_);
return true; return true;