diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-05-27 09:30:46 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-06-10 11:31:16 +0200 |
commit | 0d6b4351c64664d8c2f56d0ddb5e38b800ed8751 (patch) | |
tree | 8e90e756ec588f3a34b740284f5ec8da315bd5c8 /libavcodec/avrndec.c | |
parent | 9dfb19baeb86a8bb02c53a441682c6e9a6e104cc (diff) |
Remove unnecessary use of avcodec_close().
Replace it with avcodec_free_context() or drop it completely as
appropriate.
Diffstat (limited to 'libavcodec/avrndec.c')
-rw-r--r-- | libavcodec/avrndec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/avrndec.c b/libavcodec/avrndec.c index 104ff2d904..a7bdab280d 100644 --- a/libavcodec/avrndec.c +++ b/libavcodec/avrndec.c @@ -91,8 +91,7 @@ static av_cold int end(AVCodecContext *avctx) { AVRnContext *a = avctx->priv_data; - avcodec_close(a->mjpeg_avctx); - av_freep(&a->mjpeg_avctx); + avcodec_free_context(&a->mjpeg_avctx); return 0; } |