Update audio.cpp

This commit is contained in:
Yabin Li 2023-10-11 15:24:46 +08:00 committed by GitHub
parent 3bb14b5029
commit 6d190bf317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(