hedgewars/avwrapper/avwrapper.c
branch0.9.22
changeset 11297 bf5cfd830f7d
parent 11295 210650fc7182
child 11316 516e9b1ac889
child 11593 72be390795db
equal deleted inserted replaced
11296:2f812d4513d1 11297:bf5cfd830f7d
   188 static int WriteAudioFrame()
   188 static int WriteAudioFrame()
   189 {
   189 {
   190     if (!g_pAStream)
   190     if (!g_pAStream)
   191         return 0;
   191         return 0;
   192 
   192 
   193     AVPacket Packet = { 0 };
   193     AVPacket Packet;
   194     av_init_packet(&Packet);
   194     av_init_packet(&Packet);
   195 
   195 
   196     int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);
   196     int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);
   197 
   197 
   198 #if LIBAVCODEC_VERSION_MAJOR >= 53
   198 #if LIBAVCODEC_VERSION_MAJOR >= 53