diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 6e3dfe2bc2..1b0a2120b7 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -1976,10 +1976,11 @@ gst_h264_parser_parse_sei (GstH264NalParser * nalparser, GstH264NalUnit * nalu, if (sei->payloadType == GST_H264_SEI_BUF_PERIOD) { /* size not set; might depend on emulation_prevention_three_byte */ res = gst_h264_parser_parse_buffering_period (nalparser, - &sei->buffering_period, &nr); + &sei->payload.buffering_period, &nr); } else if (sei->payloadType == GST_H264_SEI_PIC_TIMING) { /* size not set; might depend on emulation_prevention_three_byte */ - res = gst_h264_parser_parse_pic_timing (nalparser, &sei->pic_timing, &nr); + res = gst_h264_parser_parse_pic_timing (nalparser, + &sei->payload.pic_timing, &nr); } else res = GST_H264_PARSER_OK; diff --git a/gst-libs/gst/codecparsers/gsth264parser.h b/gst-libs/gst/codecparsers/gsth264parser.h index bfcef5c888..6698922e42 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.h +++ b/gst-libs/gst/codecparsers/gsth264parser.h @@ -664,7 +664,7 @@ struct _GstH264SEIMessage GstH264BufferingPeriod buffering_period; GstH264PicTiming pic_timing; /* ... could implement more */ - }; + } payload; }; /** diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 020f3c625f..bae0c94dff 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -492,10 +492,11 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) switch (sei.payloadType) { case GST_H264_SEI_PIC_TIMING: h264parse->sei_pic_struct_pres_flag = - sei.pic_timing.pic_struct_present_flag; - h264parse->sei_cpb_removal_delay = sei.pic_timing.cpb_removal_delay; + sei.payload.pic_timing.pic_struct_present_flag; + h264parse->sei_cpb_removal_delay = + sei.payload.pic_timing.cpb_removal_delay; if (h264parse->sei_pic_struct_pres_flag) - h264parse->sei_pic_struct = sei.pic_timing.pic_struct; + h264parse->sei_pic_struct = sei.payload.pic_timing.pic_struct; break; case GST_H264_SEI_BUF_PERIOD: if (h264parse->ts_trn_nb == GST_CLOCK_TIME_NONE ||