# HG changeset patch # User Ritor1 # Date 1401614240 -21600 # Node ID 43f29cb2e6edad2a97867a228b3d05f7a9412f46 # Parent d6bba1e6249d8aaa0f0ea539aea2afa638d56d01 . diff -r d6bba1e6249d -r 43f29cb2e6ed MediaPlayer.cpp --- a/MediaPlayer.cpp Sat Apr 19 23:56:01 2014 +0600 +++ b/MediaPlayer.cpp Sun Jun 01 15:17:20 2014 +0600 @@ -727,7 +727,7 @@ device_buffer = provider->CreateTrack16(audio.dec_ctx->channels, audio.dec_ctx->sample_rate, 2, num_audio_samples, audio_plain_data.Ptr()); - ReleaseAvcodec(); + Release(); return true; } } @@ -813,6 +813,7 @@ delete decoding_frame; if (last_resampled_frame_data[0]) av_freep(&last_resampled_frame_data[0]); + } bool Load(const wchar_t *filename, int dst_width, int dst_height, int cache_ms) //Загрузка @@ -990,7 +991,7 @@ last_resampled_frame_num = desired_frame_number; memcpy(last_resampled_frame_data, rescaled_data, sizeof(rescaled_data)); memcpy(last_resampled_frame_linesize, rescaled_linesize, sizeof(rescaled_linesize)); - //вроде должен быть av_freep(&rescaled_data[0]); + //av_freep(&rescaled_data[0]);//вроде должен быть } } else