Bug#803825: hedgewars: FTBFS with FFmpeg 2.9

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Tue Nov 3 18:34:44 UTC 2015


Hi Gianfranco,

On 03.11.2015 14:53, Gianfranco Costamagna wrote:
> I assumed the difference has been introduced in version 57

That's not correct: the alternatives have been present for a
long time, so that the deprecated functions will be removed
in the next version.

> so I did some
> 
> #if LIBAVCODEC_VERSION_MAJOR > 56 
> in the code, and stuff seems to be building correctly.

While this will probably work, it's not entirely correct.
You can use:
 * for AVPixelFormat, AV_PIX_FMT_*:
#if LIBAVUTIL_VERSION_MAJOR > 51
 * for av_frame_alloc/av_frame_free:
#if LIBAVUTIL_VERSION_MAJOR > 52
 * for av_stream_get_end_pts:
#if LIBAVFORMAT_VERSION_MAJOR > 55

> thanks for the bug report, I'll upload on unstable when convenient
> (assuming there is no hurry)

That's fine, there is no hurry, yet.

Best regards,
Andreas



More information about the Pkg-games-devel mailing list