mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 21:08:59 +08:00
avplay: reset rdft when closing stream.
this fixes a crash when cycling audio streams if the spectrograph is displayed.
This commit is contained in:
2
avplay.c
2
avplay.c
@ -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:
|
||||||
|
Reference in New Issue
Block a user