summaryrefslogtreecommitdiff
path: root/libavcodec/avdct.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-03-26 12:51:25 -0300
committerJames Almer <jamrial@gmail.com>2018-03-26 12:51:25 -0300
commit3c245707bd48291af544683bc875e531dd83d5d1 (patch)
treedc99bbca86d2196c49afdc21a286f9cc8f954cf6 /libavcodec/avdct.c
parent3eff98c9278804b4b664bad3853e5e60184c6a54 (diff)
downloadffmpeg-3c245707bd48291af544683bc875e531dd83d5d1.tar.gz
avcodec/avdct: use the proper function to free AVCodecContext
Fixes ticket #7074 Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/avdct.c')
-rw-r--r--libavcodec/avdct.c3
1 files changed, 1 insertions, 2 deletions
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;
}