# HG changeset patch # User Vittorio Giovara # Date 1447159996 -3600 # Node ID ce154ffb9a8b030c900dc9c8f10efbdeef0d0c78 # Parent 82784d932577d4faee91ecf06adc7b33b79e9f45 videorec: Use future API for raw video encoding diff -r 82784d932577 -r ce154ffb9a8b hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Tue Nov 10 13:53:15 2015 +0100 +++ b/hedgewars/avwrapper/avwrapper.c Tue Nov 10 13:53:16 2015 +0100 @@ -365,6 +365,7 @@ Packet.size = 0; g_pVFrame->pts++; +#if LIBAVCODEC_VERSION_MAJOR < 58 if (g_pFormat->flags & AVFMT_RAWPICTURE) { /* raw video case. The API will change slightly in the near @@ -379,6 +380,7 @@ return 0; } else +#endif { #if LIBAVCODEC_VERSION_MAJOR >= 54 int got_packet;