From 3c245707bd48291af544683bc875e531dd83d5d1 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 26 Mar 2018 12:51:25 -0300 Subject: avcodec/avdct: use the proper function to free AVCodecContext Fixes ticket #7074 Signed-off-by: James Almer --- libavcodec/avdct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/avdct.c') diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c index 860f86595d..47e5f7134e 100644 --- a/libavcodec/avdct.c +++ b/libavcodec/avdct.c @@ -123,8 +123,7 @@ int avcodec_dct_init(AVDCT *dsp) } #endif - avcodec_close(avctx); - av_free(avctx); + avcodec_free_context(&avctx); return 0; } -- cgit v1.2.1