aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-08 10:33:18 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-08 10:43:57 -0500
commitf9324d5adda6147b3faad5970b6d88263397c76b (patch)
tree5d80ef3e99b65ca133fc7ef67af6d817c6904722
parent8a691dfdabc03b85255d9bd16337de737e5285c8 (diff)
downloadffmpeg-f9324d5adda6147b3faad5970b6d88263397c76b.tar.gz
avplay: reset rdft when closing stream.
this fixes a crash when cycling audio streams if the spectrograph is displayed.
-rw-r--r--avplay.c2
1 files changed, 2 insertions, 0 deletions
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: