From dd809f4ccaf9870a6c3a13af800ba4228fbc572a Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Tue, 10 Nov 2015 13:53:16 +0100 Subject: [PATCH] [PATCH] videorec: Use future API for raw video encoding --HG-- extra : hg-git-rename-source : git Gbp-Pq: Name a0e5bd1d4d77c1558394d9ac6b6b8a5030ef5282.patch --- hedgewars/avwrapper/avwrapper.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2