diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c index 7abe95116d..a99c27b7af 100644 --- a/filters/f_decoder_wrapper.c +++ b/filters/f_decoder_wrapper.c @@ -367,6 +367,8 @@ static void decf_destroy(struct mp_filter *f) MP_DBG(f, "Uninit decoder.\n"); talloc_free(p->decoder->f); p->decoder = NULL; + p->codec->decoder = NULL; + p->codec->decoder_desc = NULL; } decf_reset(f);