Commit 573c3b4d authored by NzSN's avatar NzSN

update

parent 5e997486
......@@ -13,7 +13,7 @@ extern "C" {
namespace IOProto {
constexpr size_t DEFAULT_BUFFER_SIZE = 32768;
constexpr size_t DEFAULT_BUFFER_SIZE = 4096;
enum RW_FLAG {
read,
......@@ -60,7 +60,7 @@ public:
if (io == nullptr) {
// This buffer is managed by libav
uint8_t *buffer = (uint8_t*)malloc(DEFAULT_BUFFER_SIZE);
uint8_t *buffer = (uint8_t*)av_malloc(DEFAULT_BUFFER_SIZE);
io = avio_alloc_context(
buffer, DEFAULT_BUFFER_SIZE, flag == write, static_cast<void*>(this),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment