frame: use correct linesize value for allocations
OOF NO WONDER MEMORY USAGE IS SO HIGH
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user