From cb65468c28c26074d9b7eb431b09170d13ca1b9b Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Tue, 10 Nov 2015 13:53:13 +0100 Subject: [PATCH] [PATCH] videorec: Fully set frame properties --HG-- extra : hg-git-rename-source : git Gbp-Pq: Name 3e1856bb563ad889e113f5ba440196e1c9e07b50.patch --- hedgewars/avwrapper/avwrapper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hedgewars/avwrapper/avwrapper.c b/hedgewars/avwrapper/avwrapper.c index 232398c..3941ab6 100644 --- a/hedgewars/avwrapper/avwrapper.c +++ b/hedgewars/avwrapper/avwrapper.c @@ -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; -- 2.30.2