[fix] increase the default size of the RingBuffer to 1280 to prevent handling overly large encoded video frame

This commit is contained in:
dijunkun
2024-09-13 22:00:47 +08:00
parent c67ce332f6
commit a0bccfe53d

View File

@@ -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];
} }