diff --git a/funasr/runtime/onnxruntime/src/audio.cpp b/funasr/runtime/onnxruntime/src/audio.cpp index 1eafa3f59..6bc60150f 100644 --- a/funasr/runtime/onnxruntime/src/audio.cpp +++ b/funasr/runtime/onnxruntime/src/audio.cpp @@ -426,7 +426,7 @@ bool Audio::FfmpegLoad(const char* buf, int n_file_len){ 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(