Commit f7d4c60a authored by James Almer's avatar James Almer

avfilter/vf_mcdeint: free the AVCodecContext struct properly

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent ec07574a
......@@ -154,10 +154,7 @@ static av_cold void uninit(AVFilterContext *ctx)
{
MCDeintContext *mcdeint = ctx->priv;
if (mcdeint->enc_ctx) {
avcodec_close(mcdeint->enc_ctx);
av_freep(&mcdeint->enc_ctx);
}
avcodec_free_context(&mcdeint->enc_ctx);
}
static int query_formats(AVFilterContext *ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment