diff options
author | James Almer <jamrial@gmail.com> | 2018-03-26 12:51:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-03-26 12:51:25 -0300 |
commit | 3c245707bd48291af544683bc875e531dd83d5d1 (patch) | |
tree | dc99bbca86d2196c49afdc21a286f9cc8f954cf6 | |
parent | 3eff98c9278804b4b664bad3853e5e60184c6a54 (diff) | |
download | ffmpeg-3c245707bd48291af544683bc875e531dd83d5d1.tar.gz |
avcodec/avdct: use the proper function to free AVCodecContext
Fixes ticket #7074
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/avdct.c | 3 |
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; } |