|
@@ -154,10 +154,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|
|
{
|
|
{
|
|
|
MCDeintContext *mcdeint = ctx->priv;
|
|
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)
|
|
static int query_formats(AVFilterContext *ctx)
|