summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-02-11 15:13:04 +0000
committerMark Thompson <sw@jkqxz.net>2017-02-13 20:14:27 +0000
commit44f2eda39ff55c69d4d739fb12a42a10b7ce581c (patch)
tree8d4008c99ef8688c0318cbc49ee63e4d73e59241 /libavcodec/utils.c
parent07b5136c481d394992c7e951967df0cfbb346c0b (diff)
lavc: Add device context field to AVCodecContext
For use by codec implementations which can allocate frames internally.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 06a5784046..ea4d5fa312 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -794,6 +794,7 @@ av_cold int avcodec_close(AVCodecContext *avctx)
avctx->nb_coded_side_data = 0;
av_buffer_unref(&avctx->hw_frames_ctx);
+ av_buffer_unref(&avctx->hw_device_ctx);
if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)
av_opt_free(avctx->priv_data);