summaryrefslogtreecommitdiff
path: root/libavcodec/avdct.c
diff options
context:
space:
mode:
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;
}