diff mbox series

[FFmpeg-devel,3/3] avcodec/cuviddec: signal that the decoder sets all output frame properties

Message ID 20210618220213.52768-3-jamrial@gmail.com
State Accepted
Commit 6b4805686c9991fbb474e9f3488b76a91bf4cd22
Headers show
Series [FFmpeg-devel,1/3] avcodec/decode: fetch packets from the pkt_props FIFO on every frame returned
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer June 18, 2021, 10:02 p.m. UTC
Fixes memleaks described in ticket #9082.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/cuviddec.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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, \