diff options
author | Andrey Turkin <andrey.turkin@gmail.com> | 2016-05-25 19:57:11 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-05-31 15:48:43 +0200 |
commit | b69335304d384ca52db98484719aadfd0f61ecb2 (patch) | |
tree | f13ed72ab4592dde84c43335c5e8f1a77aa55547 /libavcodec/nvenc_h264.c | |
parent | f84dfbc74a4f881e80cbf467649c59b2bb628eaa (diff) | |
download | ffmpeg-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_h264.c')
-rw-r--r-- | libavcodec/nvenc_h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c index 438aa2002f..19709c6ae6 100644 --- a/libavcodec/nvenc_h264.c +++ b/libavcodec/nvenc_h264.c @@ -115,6 +115,7 @@ AVCodec ff_nvenc_encoder = { .priv_class = &nvenc_class, .defaults = defaults, .capabilities = AV_CODEC_CAP_DELAY, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .pix_fmts = ff_nvenc_pix_fmts, }; #endif @@ -140,6 +141,7 @@ AVCodec ff_nvenc_h264_encoder = { .priv_class = &nvenc_h264_class, .defaults = defaults, .capabilities = AV_CODEC_CAP_DELAY, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .pix_fmts = ff_nvenc_pix_fmts, }; #endif |