# HG changeset patch # User Vittorio Giovara # Date 1446652423 -3600 # Node ID f9fa0d6dc69f8250d04becd80be25f93d7b029a2 # Parent 64ad779be7bf08fde1c7b21878b0e53833636e23 Let initialization happen in the appropriate function diff -r 64ad779be7bf -r f9fa0d6dc69f hedgewars/avwrapper/avwrapper.c --- a/hedgewars/avwrapper/avwrapper.c Wed Nov 04 16:53:38 2015 +0100 +++ b/hedgewars/avwrapper/avwrapper.c Wed Nov 04 16:53:43 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);