diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.c index 92383edbbd..1883c5fac5 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.c @@ -2278,6 +2278,7 @@ gst_h264_parse_pps (GstH264NalParser * nalparser, GstH264NalUnit * nalu, return GST_H264_PARSER_BROKEN_LINK; } pps->sequence = sps; + pps->sps_id = sps_id; qp_bd_offset = 6 * (sps->bit_depth_luma_minus8 + sps->separate_colour_plane_flag); @@ -2470,6 +2471,7 @@ gst_h264_parser_parse_slice_hdr (GstH264NalParser * nalparser, } slice->pps = pps; + slice->pps_id = pps_id; sps = pps->sequence; if (!sps) { GST_WARNING ("couldn't find associated sequence parameter set with id: %d", diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.h b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.h index b05267ecd3..9a2a3baf5d 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth264parser.h @@ -925,6 +925,15 @@ struct _GstH264PPS /* Since: 1.18 */ guint8 pic_scaling_matrix_present_flag; + + /** + * _GstH264PPS.sps_id: + * + * SPS id + * + * Since: 1.28 + */ + guint sps_id; }; struct _GstH264RefPicListModification @@ -1059,6 +1068,15 @@ struct _GstH264SliceHdr * delta_pic_order_cnt[1]. (Since: 1.18) */ guint pic_order_cnt_bit_size; + + /** + * _GstH264SliceHdr.pps_id: + * + * PPS id + * + * Since: 1.28 + */ + guint pps_id; }; /**