mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avplay: free rdft data used for spectrogram analysis.
fixes a memleak
This commit is contained in:
parent
67bbf07fb5
commit
cb2c4de3a1
5
avplay.c
5
avplay.c
@ -2271,6 +2271,11 @@ static void stream_component_close(VideoState *is, int stream_index)
|
||||
if (is->reformat_ctx)
|
||||
av_audio_convert_free(is->reformat_ctx);
|
||||
is->reformat_ctx = NULL;
|
||||
|
||||
if (is->rdft) {
|
||||
av_rdft_end(is->rdft);
|
||||
av_freep(&is->rdft_data);
|
||||
}
|
||||
break;
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
packet_queue_abort(&is->videoq);
|
||||
|
Loading…
Reference in New Issue
Block a user