游雁
2023-10-11 e899096ce46ab74be7bdce64e24b91e86bb3be78
funasr/runtime/onnxruntime/src/audio.cpp
@@ -9,6 +9,9 @@
#include "audio.h"
#include "precomp.h"
#ifdef _MSC_VER
#pragma warning(disable:4996)
#endif
#if defined(__APPLE__)
#include <string.h>
@@ -423,7 +426,7 @@
    return false;
#else
    // from buf
    char* buf_copy = (char *)malloc(n_file_len);
    void* buf_copy = av_malloc(n_file_len);
    memcpy(buf_copy, buf, n_file_len);
    AVIOContext* avio_ctx = avio_alloc_context(