videorec: Make sure the audio packet is considered empty 0.9.22
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 10 Nov 2015 13:53:10 +0100
branch0.9.22
changeset 11593 72be390795db
parent 11574 5eae0a831425
child 11594 91d31e15f8f2
videorec: Make sure the audio packet is considered empty
hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Wed Nov 11 18:40:52 2015 +0100
+++ b/hedgewars/avwrapper/avwrapper.c	Tue Nov 10 13:53:10 2015 +0100
@@ -192,6 +192,8 @@
 
     AVPacket Packet;
     av_init_packet(&Packet);
+    Packet.data = NULL;
+    Packet.size = 0;
 
     int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);