mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update audio.cpp
This commit is contained in:
parent
3bb14b5029
commit
6d190bf317
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user