Commit 3c245707 authored by James Almer's avatar James Almer

avcodec/avdct: use the proper function to free AVCodecContext

Fixes ticket #7074
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 3eff98c9
......@@ -123,8 +123,7 @@ int avcodec_dct_init(AVDCT *dsp)
}
#endif
avcodec_close(avctx);
av_free(avctx);
avcodec_free_context(&avctx);
return 0;
}
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