# HG changeset patch # User Vittorio Giovara # Date 1447159993 -3600 # Node ID dc17a495ee7f8b40a74d2fdf3dce11f4a4bdbb59 # Parent 44248a9cdcaccd06b03a55711654b8b5b04f8050 videorec: Fully set frame properties diff -r 44248a9cdcac -r dc17a495ee7f 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 @@ -311,6 +311,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;