Mercurial > mm7
changeset 2371:43f29cb2e6ed
.
author | Ritor1 |
---|---|
date | Sun, 01 Jun 2014 15:17:20 +0600 |
parents | d6bba1e6249d |
children | 7bf6901add4a |
files | MediaPlayer.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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