diff options
author | James Almer <jamrial@gmail.com> | 2021-06-18 18:59:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-06-21 15:21:51 -0300 |
commit | 6b4805686c9991fbb474e9f3488b76a91bf4cd22 (patch) | |
tree | d2fd1b8272535c77a0098fe53576476f5b9bfcd6 | |
parent | 854a9d8c6e6e450b43f94c566c13f7956f6defcc (diff) | |
download | ffmpeg-6b4805686c9991fbb474e9f3488b76a91bf4cd22.tar.gz |
avcodec/cuviddec: signal that the decoder sets all output frame properties
Fixes memleaks described in ticket #9082.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/cuviddec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index d8c7f23a37..e157777c51 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -1116,6 +1116,7 @@ static const AVCodecHWConfigInternal *const cuvid_hw_configs[] = { .flush = cuvid_flush, \ .bsfs = bsf_name, \ .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_HARDWARE, \ + .caps_internal = FF_CODEC_CAP_SETS_FRAME_PROPS, \ .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_CUDA, \ AV_PIX_FMT_NV12, \ AV_PIX_FMT_P010, \ |