[FFmpeg-cvslog] avplay: free rdft data used for spectrogram analysis.

Justin Ruggles git at videolan.org
Thu Oct 13 06:01:50 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Oct 12 14:38:02 2011 -0400| [cb2c4de3a16c083973921587b6e8c79af59c9626] | committer: Justin Ruggles

avplay: free rdft data used for spectrogram analysis.

fixes a memleak

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb2c4de3a16c083973921587b6e8c79af59c9626
---

 avplay.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/avplay.c b/avplay.c
index 8da50eb..c2b5e4b 100644
--- a/avplay.c
+++ b/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);



More information about the ffmpeg-cvslog mailing list