From 1bd5afa460935d3c96b443960676517308ea1bb3 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 26 Mar 2025 01:13:47 +0900 Subject: [PATCH] h265parser: Store PPS id in slice header Part-of: --- .../gst-libs/gst/codecparsers/gsth265parser.c | 1 + .../gst-libs/gst/codecparsers/gsth265parser.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c index 9319fc377f..56c3e83515 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c @@ -2763,6 +2763,7 @@ gst_h265_parser_parse_slice_hdr (GstH265Parser * parser, return err; } + slice->pps_id = pps_id; slice->pps = pps; sps = pps->sps; if (!sps) { diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h index e4677b114a..938eecfd25 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h @@ -1556,6 +1556,15 @@ struct _GstH265SliceHdr * Since: 1.22 */ guint long_term_ref_pic_set_size; + + /** + * _GstH265SliceHdr.pps_id: + * + * PPS id + * + * Since: 1.28 + */ + guint pps_id; }; struct _GstH265PicTiming