Message ID | CAGqZTUvunG96Q0XmTfACjgAp3k9Nmz27rbYRjNbHtoueQJBiQA@mail.gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [FFmpeg-devel] set ulMaxDisplayDelay cuviddec parser option to zero if low_delay flag is on | expand |
Context | Check | Description |
---|---|---|
andriy/configure | warning | Failed to apply patch |
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 49775b5a09..ef5acb6b7b 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -999,7 +999,7 @@ static av_cold int cuvid_decode_init(AVCodecContext *avctx) } ctx->cuparseinfo.ulMaxNumDecodeSurfaces = ctx->nb_surfaces; - ctx->cuparseinfo.ulMaxDisplayDelay = 4; + ctx->cuparseinfo.ulMaxDisplayDelay = avctx->flags & AV_CODEC_FLAG_LOW_DELAY ? 0 : 4; ctx->cuparseinfo.pUserData = avctx; ctx->cuparseinfo.pfnSequenceCallback = cuvid_handle_video_sequence;
From a2c5edfdbeb428935f7e12c8d78a68d45b2e598d Mon Sep 17 00:00:00 2001 From: Michal Novotny <michal.novotny@comprimato.com> Date: Fri, 19 Feb 2021 05:11:14 -0800 Subject: [PATCH] set ulMaxDisplayDelay cuviddec parser option to zero if low_delay flag is on * zero is recommended value in Nvidia coding samples for low latency use-cases --- libavcodec/cuviddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ctx->cuparseinfo.pfnDecodePicture = cuvid_handle_picture_decode; -- 2.30.1