h265decoder: Update SpsMaxLatencyPictures properly

The SpsMaxLatencyPictures value never gets back to zero even if
it's needed. Update the value properly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2915>
This commit is contained in:
Seungha Yang 2022-08-19 04:49:53 +09:00 committed by GStreamer Marge Bot
parent 59e60203ba
commit 6c4c576699

View file

@ -515,6 +515,8 @@ gst_h265_decoder_process_sps (GstH265Decoder * self, GstH265SPS * sps)
priv->SpsMaxLatencyPictures =
sps->max_num_reorder_pics[sps->max_sub_layers_minus1] +
sps->max_latency_increase_plus1[sps->max_sub_layers_minus1] - 1;
} else {
priv->SpsMaxLatencyPictures = 0;
}
return GST_FLOW_OK;