From ce8965b75baab081ec9d7fe97a565d8c63d8f3cc Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 3 Oct 2021 17:41:40 +0900 Subject: [PATCH] nvcodec: nvh264sldec: Consider additional render delay DPB pictures At least additional 4 pictures are required Part-of: --- subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c index f98bd4e1d6..17f5875133 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264dec.c @@ -413,8 +413,8 @@ gst_nv_h264_dec_new_sequence (GstH264Decoder * decoder, const GstH264SPS * sps, /* FIXME: add support cudaVideoCodec_H264_SVC and cudaVideoCodec_H264_MVC */ if (!gst_nv_decoder_configure (self->decoder, cudaVideoCodec_H264, &info, self->coded_width, self->coded_height, - /* Additional 2 buffers for margin */ - max_dpb_size + 2)) { + /* Additional 4 buffers for render delay */ + max_dpb_size + 4)) { GST_ERROR_OBJECT (self, "Failed to configure decoder"); return FALSE; }