From 83256230515c48ccc009862d07a81c6a8cda81d4 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 16 Jun 2023 19:22:55 +0900 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp index e7a9196f9f..17df73fdd0 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp @@ -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;