mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
nvcodec: nvh264sldec: Consider additional render delay DPB pictures
At least additional 4 pictures are required Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1026>
This commit is contained in:
parent
613d380b97
commit
ce8965b75b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue