mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/cuviddec: set ulMaxDisplayDelay to zero if low_delay flag is set
Zero is the recommended value in Nvidia coding samples for low latency use-cases. Signed-off-by: Michal Novotny <michal.novotny@comprimato.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
a0949d0bcb
commit
b5d95998ff
@ -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;
|
||||
ctx->cuparseinfo.pfnDecodePicture = cuvid_handle_picture_decode;
|
||||
|
Loading…
Reference in New Issue
Block a user