aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-02-09 00:23:36 +0000
committerMark Thompson <sw@jkqxz.net>2017-02-13 22:06:43 +0000
commitc1a5fca06f75cc0e7b9b2808fecaa0c1b424da50 (patch)
tree13c46887150c9a8473910f3fc88335d8bdc44a30 /libavcodec/utils.c
parentaa234698e92fa856013a1391fac3526b06c4d533 (diff)
downloadffmpeg-c1a5fca06f75cc0e7b9b2808fecaa0c1b424da50.tar.gz
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 f8ec4c1ae6..f4085bf7a7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3067,6 +3067,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);