# HG changeset patch # User Vittorio Giovara # Date 1447159996 -3600 # Node ID 476cbbad88c0e3ec627794bf6ff0c1a1d53d3e87 # Parent 4575b699034870273bb3f1e4f8179e1dca170e4a videorec: Use future API for raw video encoding diff -r 4575b6990348 -r 476cbbad88c0 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 @@ -371,6 +371,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 @@ -385,6 +386,7 @@ return 0; } else +#endif { #if LIBAVCODEC_VERSION_MAJOR >= 54 int got_packet;