hedgewars/avwrapper/avwrapper.c
changeset 11364 f830c080aa9d
parent 11316 516e9b1ac889
child 11365 44248a9cdcac
equal deleted inserted replaced
11363:9fc4dc5f8446 11364:f830c080aa9d
   190     if (!g_pAStream)
   190     if (!g_pAStream)
   191         return 0;
   191         return 0;
   192 
   192 
   193     AVPacket Packet;
   193     AVPacket Packet;
   194     av_init_packet(&Packet);
   194     av_init_packet(&Packet);
       
   195     Packet.data = NULL;
       
   196     Packet.size = 0;
   195 
   197 
   196     int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);
   198     int NumSamples = fread(g_pSamples, 2*g_Channels, g_NumSamples, g_pSoundFile);
   197 
   199 
   198 #if LIBAVCODEC_VERSION_MAJOR >= 53
   200 #if LIBAVCODEC_VERSION_MAJOR >= 53
   199     AVFrame* pFrame = NULL;
   201     AVFrame* pFrame = NULL;