Commit cb2c4de3 authored by Justin Ruggles's avatar Justin Ruggles

avplay: free rdft data used for spectrogram analysis.

fixes a memleak
parent 67bbf07f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment