diff options
author | James Almer <jamrial@gmail.com> | 2017-08-30 14:34:04 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-08-30 14:36:01 -0300 |
commit | f7d4c60ac47547f69ddc96e7bed682f54436cd1a (patch) | |
tree | d77e0c19270d25b973845885c7cec9e6d63b8015 | |
parent | ec07574a15bacabe0f6e4e496842e4935862c094 (diff) | |
download | ffmpeg-f7d4c60ac47547f69ddc96e7bed682f54436cd1a.tar.gz |
avfilter/vf_mcdeint: free the AVCodecContext struct properly
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavfilter/vf_mcdeint.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/vf_mcdeint.c b/libavfilter/vf_mcdeint.c index 26387b84e7..d53322b40d 100644 --- a/libavfilter/vf_mcdeint.c +++ b/libavfilter/vf_mcdeint.c @@ -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) |