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:
parent
59e60203ba
commit
6c4c576699
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user