mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue