[FFmpeg-cvslog] avplay: reset rdft when closing stream.

Justin Ruggles git at videolan.org
Wed Nov 9 03:31:04 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Nov  8 10:33:18 2011 -0500| [f9324d5adda6147b3faad5970b6d88263397c76b] | committer: Justin Ruggles

avplay: reset rdft when closing stream.

this fixes a crash when cycling audio streams if the spectrograph is
displayed.

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

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

diff --git a/avplay.c b/avplay.c
index c67cc75..01c0f11 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2279,6 +2279,8 @@ static void stream_component_close(VideoState *is, int stream_index)
         if (is->rdft) {
             av_rdft_end(is->rdft);
             av_freep(&is->rdft_data);
+            is->rdft = NULL;
+            is->rdft_bits = 0;
         }
         break;
     case AVMEDIA_TYPE_VIDEO:



More information about the ffmpeg-cvslog mailing list