d3d11decoder: Reduce DPB size

Now all codec baseclasses can inform subclasses of correct max DPB size,
and exception handling (e.g., emergency bumping in h.264) has been
improved as well. Smaller number of additional DPB frame allocation
seems to be safe.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4878>
This commit is contained in:
Seungha Yang 2023-06-16 19:22:55 +09:00 committed by GStreamer Marge Bot
parent de749fa356
commit 8325623051

View file

@ -806,8 +806,8 @@ gst_d3d11_decoder_configure (GstD3D11Decoder * decoder,
return FALSE;
}
/* Additional 4 frames to help zero-copying */
dpb_size += 4;
/* Additional 2 frames to help zero-copying */
dpb_size += 2;
decoder->input_state = gst_video_codec_state_ref (input_state);
decoder->info = decoder->output_info = *out_info;