[PATCH] videorec: Use future API for raw video encoding
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 10 Nov 2015 12:53:16 +0000 (13:53 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 12 Jan 2017 16:30:21 +0000 (16:30 +0000)
--HG--
extra : hg-git-rename-source : git

Gbp-Pq: Name a0e5bd1d4d77c1558394d9ac6b6b8a5030ef5282.patch

hedgewars/avwrapper/avwrapper.c

index f041af344b81bbad24cf48dda798c9ae744d6886..1f48af48360ce890d2e54fe3c45b99b131fe4dd6 100644 (file)
@@ -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;