Project

General

Profile

Actions

Bug #2403

closed

Compilation failure with ffmpeg 3.0.1

Added by Markus over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/18/2016
Due date:
% Done:

100%

Estimated time:

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

fix_removed_api.patch (666 Bytes) fix_removed_api.patch Markus, 05/18/2016 07:23 PM
fix_deprecated_api.patch (720 Bytes) fix_deprecated_api.patch Markus, 06/09/2016 07:54 PM
Actions #1

Updated by Markus over 8 years ago

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.

Actions #2

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!

Actions

Also available in: Atom PDF