mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
Update audio.cpp
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user