[PATCH] videorec: Fully set frame properties
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 10 Nov 2015 12:53:13 +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 3e1856bb563ad889e113f5ba440196e1c9e07b50.patch

hedgewars/avwrapper/avwrapper.c

index 232398c567023e173ff10b85b10c13d28fb61413..3941ab6dd5844887e558ff78c1bb8cfb4e491dff 100644 (file)
@@ -311,6 +311,9 @@ static int AddVideoStream()
     if (!g_pVFrame)
         return FatalError("Could not allocate frame");
 
+    g_pVFrame->width = g_Width;
+    g_pVFrame->height = g_Height;
+    g_pVFrame->format = AV_PIX_FMT_YUV420P;
     g_pVFrame->linesize[0] = g_Width;
     g_pVFrame->linesize[1] = g_Width/2;
     g_pVFrame->linesize[2] = g_Width/2;