Skip to content
Snippets Groups Projects
Commit f9324d5a authored by Justin Ruggles's avatar Justin Ruggles
Browse files

avplay: reset rdft when closing stream.

this fixes a crash when cycling audio streams if the spectrograph is
displayed.
parent 8a691dfd
No related branches found
No related tags found
No related merge requests found
...@@ -2279,6 +2279,8 @@ static void stream_component_close(VideoState *is, int stream_index) ...@@ -2279,6 +2279,8 @@ static void stream_component_close(VideoState *is, int stream_index)
if (is->rdft) { if (is->rdft) {
av_rdft_end(is->rdft); av_rdft_end(is->rdft);
av_freep(&is->rdft_data); av_freep(&is->rdft_data);
is->rdft = NULL;
is->rdft_bits = 0;
} }
break; break;
case AVMEDIA_TYPE_VIDEO: case AVMEDIA_TYPE_VIDEO:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment