# HG changeset patch # User Vittorio Giovara # Date 1446650452 -3600 # Node ID bf5cfd830f7d6f8bd88231750251fc442266df89 # Parent 2f812d4513d1b34268df371269331273762c4bcd Let initialization happen in the appropriate function diff -r 2f812d4513d1 -r bf5cfd830f7d hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Wed Nov 04 16:20:46 2015 +0100 +++ b/hedgewars/avwrapper/avwrapper.c Wed Nov 04 16:20:52 2015 +0100 @@ -190,7 +190,7 @@ if (!g_pAStream) return 0; - AVPacket Packet = { 0 }; + AVPacket Packet; av_init_packet(&Packet); int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);