videorec: Make sure the audio packet is considered empty
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 10 Nov 2015 13:53:10 +0100
changeset 11347 f830c080aa9d
parent 11346 9fc4dc5f8446
child 11348 44248a9cdcac
videorec: Make sure the audio packet is considered empty
hedgewars/avwrapper/avwrapper.c
--- a/hedgewars/avwrapper/avwrapper.c	Wed Nov 11 13:31:31 2015 +0300
+++ 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);