summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvenc_hevc.c
diff options
context:
space:
mode:
authorAndrey Turkin <andrey.turkin@gmail.com>2016-05-25 19:57:11 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2016-05-31 15:48:43 +0200
commitb69335304d384ca52db98484719aadfd0f61ecb2 (patch)
treef13ed72ab4592dde84c43335c5e8f1a77aa55547 /libavcodec/nvenc_hevc.c
parentf84dfbc74a4f881e80cbf467649c59b2bb628eaa (diff)
downloadffmpeg-streaming-b69335304d384ca52db98484719aadfd0f61ecb2.zip
ffmpeg-streaming-b69335304d384ca52db98484719aadfd0f61ecb2.tar.gz
avcodec/nvenc: use INIT_CLEANUP to deal with init failures
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc_hevc.c')
-rw-r--r--libavcodec/nvenc_hevc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index f98c60d..659e1c9 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -112,4 +112,5 @@ AVCodec ff_nvenc_hevc_encoder = {
.defaults = defaults,
.pix_fmts = ff_nvenc_pix_fmts,
.capabilities = AV_CODEC_CAP_DELAY,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
OpenPOWER on IntegriCloud