mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] increase the default size of the RingBuffer to 1280 to prevent handling overly large encoded video frame
This commit is contained in:
@@ -47,7 +47,7 @@ class Data {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class RingBuffer {
|
class RingBuffer {
|
||||||
public:
|
public:
|
||||||
RingBuffer(unsigned size = 128) : m_size(size), m_front(0), m_rear(0) {
|
RingBuffer(unsigned size = 1280) : m_size(size), m_front(0), m_rear(0) {
|
||||||
m_data = new T[size];
|
m_data = new T[size];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user