mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_mcdeint: free the AVCodecContext struct properly
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ec07574a15
commit
f7d4c60ac4
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue