diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-12 14:38:02 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-12 17:48:33 -0400 |
commit | cb2c4de3a16c083973921587b6e8c79af59c9626 (patch) | |
tree | e1f5f04fc71bc230a822f1cec337465270ad431b /avplay.c | |
parent | 67bbf07fb54b0289768b9d8195877a421c4fa500 (diff) | |
download | ffmpeg-cb2c4de3a16c083973921587b6e8c79af59c9626.tar.gz |
avplay: free rdft data used for spectrogram analysis.
fixes a memleak
Diffstat (limited to 'avplay.c')
-rw-r--r-- | avplay.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |