ffmpeg-libav-tutorial icon indicating copy to clipboard operation
ffmpeg-libav-tutorial copied to clipboard

There is not function named "av_mallocz_array" in the recent ffmpeg library

Open asmwarrior opened this issue 2 years ago β€’ 0 comments

Hi, when I try to run the sample code, I got the build error that the function av_mallocz_array is not defined.

I just looked at the ffmpeg library, and in this file, it said this function is deprecated.

https://github.com/FFmpeg/FFmpeg/blob/41dd50ad0dbbdec2225a6793758d40f0281978d9/doc/APIchanges#L315

2021-09-20 - 8d5de914d31 - lavu 57.6.100 - mem.h Deprecate av_mallocz_array() as it is identical to av_calloc().

So, can you fix your sample code? BTW, I'm using the Package: mingw-w64-x86_64-ffmpeg - MSYS2 Packages, which is version 6.0.3 under Windows + msys2(gcc compiler)

Thanks.

asmwarrior avatar Apr 30 '23 03:04 asmwarrior