mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
codecparsers: h264parse: don't use anonymous unions.
Anonymous union is an ISO C (2011) feature that is not exposed in compilers strictly conforming to the previous standard. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
a08273be72
commit
2c3eaf527b
3 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -664,7 +664,7 @@ struct _GstH264SEIMessage
|
|||
GstH264BufferingPeriod buffering_period;
|
||||
GstH264PicTiming pic_timing;
|
||||
/* ... could implement more */
|
||||
};
|
||||
} payload;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue