From 15528df1cf8d53e3f8d4d8610075c96493f944c6 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 25 Jul 2024 18:43:17 +0200 Subject: [PATCH] vaapi: Fix sps_max_dec_pic_buffering_minus1 value in h265 decoder Fixes decoding SLPPLP_A_VIDYO_2 sample. Part-of: --- .../gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapidecoder_h265.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapidecoder_h265.c b/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapidecoder_h265.c index 20d092fe1e..5ba3f14cf5 100644 --- a/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapidecoder_h265.c +++ b/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapidecoder_h265.c @@ -1987,7 +1987,8 @@ fill_picture (GstVaapiDecoderH265 * decoder, GstVaapiPictureH265 * picture, pic_param->pic_fields.bits.NoBiPredFlag = 0; pic_param->sps_max_dec_pic_buffering_minus1 = - sps->max_dec_pic_buffering_minus1[0]; + sps->max_dec_pic_buffering_minus1[sps->max_sub_layers_minus1]; + COPY_FIELD (sps, bit_depth_luma_minus8); COPY_FIELD (sps, bit_depth_chroma_minus8); COPY_FIELD (sps, pcm_sample_bit_depth_luma_minus1);