equal
deleted
inserted
replaced
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 |