Let initialization happen in the appropriate function 0.9.22
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 04 Nov 2015 16:20:52 +0100
branch0.9.22
changeset 11349 bf5cfd830f7d
parent 11348 2f812d4513d1
child 11571 d80378a6ab31
Let initialization happen in the appropriate function
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);