leandromoreira / leandromoreira/ffmpeg-libav-tutorial
There is not function named "av_mallocz_array" in the recent ffmpeg library
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the sample code for the av_mallocz_array call and compare it with the FFmpeg API change linked in the issue. Build the affected sample against the reported FFmpeg 6.0.3 environment, then confirm that the sample builds successfully without the removed function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100