mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
codecparser: h265: Fix the NumPocTotalCurr calculation
The NumPocToalCurr should be calculated for all B and P slices. https://bugzilla.gnome.org/show_bug.cgi?id=747613
This commit is contained in:
parent
889cc8ee31
commit
333ba075a5
1 changed files with 18 additions and 17 deletions
|
@ -2075,7 +2075,6 @@ gst_h265_parser_parse_slice_hdr (GstH265Parser * parser,
|
|||
pps->num_ref_idx_l1_default_active_minus1;
|
||||
}
|
||||
|
||||
if (pps->lists_modification_present_flag) {
|
||||
/* calculate NumPocTotalCurr */
|
||||
if (slice->short_term_ref_pic_set_sps_flag)
|
||||
CurrRpsIdx = slice->short_term_ref_pic_set_idx;
|
||||
|
@ -2093,6 +2092,8 @@ gst_h265_parser_parse_slice_hdr (GstH265Parser * parser,
|
|||
if (UsedByCurrPicLt[i])
|
||||
NumPocTotalCurr++;
|
||||
slice->NumPocTotalCurr = NumPocTotalCurr;
|
||||
|
||||
if (pps->lists_modification_present_flag) {
|
||||
if (NumPocTotalCurr > 1)
|
||||
if (!gst_h265_slice_parse_ref_pic_list_modification (slice, &nr,
|
||||
NumPocTotalCurr))
|
||||
|
|
Loading…
Reference in a new issue