mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
codecparsers: h264: fix SEI parsing
... in the presence of emulation_prevention_three_byte. Fixes #668381.
This commit is contained in:
parent
5cce89b048
commit
e373df2a97
1 changed files with 2 additions and 4 deletions
|
@ -1938,13 +1938,11 @@ gst_h264_parser_parse_sei (GstH264NalParser * nalparser, GstH264NalUnit * nalu,
|
||||||
sei->payloadType, payload_size);
|
sei->payloadType, payload_size);
|
||||||
|
|
||||||
if (sei->payloadType == GST_H264_SEI_BUF_PERIOD) {
|
if (sei->payloadType == GST_H264_SEI_BUF_PERIOD) {
|
||||||
/* Set the nal reader size properly */
|
/* size not set; might depend on emulation_prevention_three_byte */
|
||||||
nr.size = payload_size;
|
|
||||||
res = gst_h264_parser_parse_buffering_period (nalparser,
|
res = gst_h264_parser_parse_buffering_period (nalparser,
|
||||||
&sei->buffering_period, &nr);
|
&sei->buffering_period, &nr);
|
||||||
} else if (sei->payloadType == GST_H264_SEI_PIC_TIMING) {
|
} else if (sei->payloadType == GST_H264_SEI_PIC_TIMING) {
|
||||||
/* Set the nal reader size properly */
|
/* size not set; might depend on emulation_prevention_three_byte */
|
||||||
nr.size = payload_size;
|
|
||||||
res = gst_h264_parser_parse_pic_timing (nalparser, &sei->pic_timing, &nr);
|
res = gst_h264_parser_parse_pic_timing (nalparser, &sei->pic_timing, &nr);
|
||||||
} else
|
} else
|
||||||
res = GST_H264_PARSER_OK;
|
res = GST_H264_PARSER_OK;
|
||||||
|
|
Loading…
Reference in a new issue