Commit 573c3b4d authored by NzSN's avatar NzSN

update

parent 5e997486
...@@ -13,7 +13,7 @@ extern "C" { ...@@ -13,7 +13,7 @@ extern "C" {
namespace IOProto { namespace IOProto {
constexpr size_t DEFAULT_BUFFER_SIZE = 32768; constexpr size_t DEFAULT_BUFFER_SIZE = 4096;
enum RW_FLAG { enum RW_FLAG {
read, read,
...@@ -60,7 +60,7 @@ public: ...@@ -60,7 +60,7 @@ public:
if (io == nullptr) { if (io == nullptr) {
// This buffer is managed by libav // 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( io = avio_alloc_context(
buffer, DEFAULT_BUFFER_SIZE, flag == write, static_cast<void*>(this), 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