X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Favdct.c;h=47e5f7134ea26ab9e9cbcb093d8dd86f44ec17b9;hb=768c0774d82c8dc8eb9c14684b619b0d3b4e2f05;hp=860f86595d3ceb45f50dde989c9caff21822c599;hpb=084e7fbe49fb0935b733726c2b0f7e6ce9553874;p=ffmpeg diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c index 860f86595d3..47e5f7134ea 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; }