Bug found and analysed by skierpage.
Unified · Split
| @@ -319,7 +319,8 @@ av_cold int ff_alsa_close(AVFormatContext *s1) · 318 unmodified lines | |||
| 319 | AlsaData *s = s1->priv_data; | 319 | AlsaData *s = s1->priv_data; |
| 320 | 320 | ||
| 321 | av_freep(&s->reorder_buf); | 321 | av_freep(&s->reorder_buf); |
| 322 | ff_timefilter_destroy(s->timefilter); | 322 | if (CONFIG_ALSA_INDEV) |
| 323 | ff_timefilter_destroy(s->timefilter); | ||
| 323 | snd_pcm_close(s->h); | 324 | snd_pcm_close(s->h); |
| 324 | return 0; | 325 | return 0; |
| 325 | } | 326 | } |