From: Vittorio Giovara Date: Tue, 10 Nov 2015 12:53:16 +0000 (+0100) Subject: [PATCH] videorec: Use future API for raw video encoding X-Git-Tag: archive/raspbian/1.0.0-8+rpi1~1^2^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd809f4ccaf9870a6c3a13af800ba4228fbc572a;p=hedgewars.git [PATCH] videorec: Use future API for raw video encoding --HG-- extra : hg-git-rename-source : git Gbp-Pq: Name a0e5bd1d4d77c1558394d9ac6b6b8a5030ef5282.patch --- diff --git a/hedgewars/avwrapper/avwrapper.c b/hedgewars/avwrapper/avwrapper.c index f041af3..1f48af4 100644 --- a/hedgewars/avwrapper/avwrapper.c +++ b/hedgewars/avwrapper/avwrapper.c @@ -365,6 +365,7 @@ static int WriteFrame(AVFrame* pFrame) 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 @@ static int WriteFrame(AVFrame* pFrame) return 0; } else +#endif { #if LIBAVCODEC_VERSION_MAJOR >= 54 int got_packet;