hedgewars/avwrapper/avwrapper.c
branch0.9.22
changeset 11593 72be390795db
parent 11297 bf5cfd830f7d
child 11594 91d31e15f8f2
equal deleted inserted replaced
11574:5eae0a831425 11593:72be390795db
   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;