# HG changeset patch # User Vittorio Giovara # Date 1447159993 -3600 # Node ID 9a17a39eccdc51aefa153aababcd9b1bd99875d0 # Parent 91d31e15f8f25e624dd50eff6aee51c3f242cdf4 videorec: Fully set frame properties diff -r 91d31e15f8f2 -r 9a17a39eccdc hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Tue Nov 10 13:53:12 2015 +0100 +++ b/hedgewars/avwrapper/avwrapper.c Tue Nov 10 13:53:13 2015 +0100 @@ -317,6 +317,9 @@ 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;