Browse Source

avplay: reset rdft when closing stream.

this fixes a crash when cycling audio streams if the spectrograph is
displayed.
tags/n0.9
Justin Ruggles 13 years ago
parent
commit
f9324d5add
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      avplay.c

+ 2
- 0
avplay.c View File

@@ -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:


Loading…
Cancel
Save