h264parser: Store associated parameter set id
Make h264parser and h265parser consistent Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8679>
This commit is contained in:
parent
1bd5afa460
commit
deee13a6c3
@ -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",
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user