Bug #2403
closedCompilation failure with ffmpeg 3.0.1
100%
Description
Trying to compile on an up-to-date Debian "stretch" with libavcodec 57.24.102 from ffmpeg 3.0.1 failed since avcodec_alloc_frame() has been removed from the API, after being deprecated for quite some time. The attached patch fixes this issue.
FFmpeg/libav version numbers were taken from http://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/doc/APIchanges, search for "avcodec_alloc_frame".
Files
Updated by Markus over 8 years ago
- File fix_deprecated_api.patch fix_deprecated_api.patch added
In this setup, the compiler also complains about AVCodecContext.codec_name
being deprecated. Together with http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/ba71c74017c287681153ec8f6f1cba650d797275 and https://git.libav.org/?p=libav.git;a=commitdiff;h=ba71c74017c287681153ec8f6f1cba650d797275 it seems to be safe to remove its use in command/decoder.cpp
if LIBAVCODEC_VERSION_MAJOR is >= 57. Patch attached.
Updated by Joe_D about 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Added to git, thanks for the patch!