diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-08-05 13:42:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-09-28 15:43:04 +0200 |
commit | 5d2daebf3cc8de4cee1973db6a2229beaad3b7cd (patch) | |
tree | 39dba23377bbdeb9b7adb901215fec3d270f9b7c | |
parent | 83847cc8fa97e0fc637a0962bafb837acdb6eacc (diff) | |
download | ffmpeg-5d2daebf3cc8de4cee1973db6a2229beaad3b7cd.tar.gz |
qsvenc: mark the encoders as INIT_CLEANUP
Should fix some leaks on init failure.
-rw-r--r-- | libavcodec/qsvenc_h264.c | 1 | ||||
-rw-r--r-- | libavcodec/qsvenc_hevc.c | 1 | ||||
-rw-r--r-- | libavcodec/qsvenc_mpeg2.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c index 7399dc76d9..93a3b1a5fc 100644 --- a/libavcodec/qsvenc_h264.c +++ b/libavcodec/qsvenc_h264.c @@ -118,4 +118,5 @@ AVCodec ff_h264_qsv_encoder = { AV_PIX_FMT_NONE }, .priv_class = &class, .defaults = qsv_enc_defaults, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, }; diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c index be608715ec..75777432b8 100644 --- a/libavcodec/qsvenc_hevc.c +++ b/libavcodec/qsvenc_hevc.c @@ -269,4 +269,5 @@ AVCodec ff_hevc_qsv_encoder = { AV_PIX_FMT_NONE }, .priv_class = &class, .defaults = qsv_enc_defaults, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, }; diff --git a/libavcodec/qsvenc_mpeg2.c b/libavcodec/qsvenc_mpeg2.c index 36010364d3..ed7c23e311 100644 --- a/libavcodec/qsvenc_mpeg2.c +++ b/libavcodec/qsvenc_mpeg2.c @@ -114,4 +114,5 @@ AVCodec ff_mpeg2_qsv_encoder = { AV_PIX_FMT_NONE }, .priv_class = &class, .defaults = qsv_enc_defaults, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, }; |