From f9324d5adda6147b3faad5970b6d88263397c76b Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 8 Nov 2011 10:33:18 -0500 Subject: avplay: reset rdft when closing stream. this fixes a crash when cycling audio streams if the spectrograph is displayed. --- avplay.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index c67cc75fe8..01c0f118e9 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: -- cgit v1.2.3