summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorJonas Larsson <jonas@hallerud.se>2012-02-15 15:07:35 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-02-15 15:10:06 +0100
commite373df2a973db5c4f99ead59565d2f4f7e8297a9 (patch)
treebd5562ab2a5fafb1a24333493e40eac81a5cae15 /gst-libs
parent5cce89b048e59e3b347b6a9521b18d8887a2c3d7 (diff)
codecparsers: h264: fix SEI parsing
... in the presence of emulation_prevention_three_byte. Fixes #668381.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gsth264parser.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c
index 2f18ffd38..572a28ded 100644
--- a/gst-libs/gst/codecparsers/gsth264parser.c
+++ b/gst-libs/gst/codecparsers/gsth264parser.c
@@ -1938,13 +1938,11 @@ gst_h264_parser_parse_sei (GstH264NalParser * nalparser, GstH264NalUnit * nalu,
sei->payloadType, payload_size);
if (sei->payloadType == GST_H264_SEI_BUF_PERIOD) {
- /* Set the nal reader size properly */
- nr.size = payload_size;
+ /* size not set; might depend on emulation_prevention_three_byte */
res = gst_h264_parser_parse_buffering_period (nalparser,
&sei->buffering_period, &nr);
} else if (sei->payloadType == GST_H264_SEI_PIC_TIMING) {
- /* Set the nal reader size properly */
- nr.size = payload_size;
+ /* size not set; might depend on emulation_prevention_three_byte */
res = gst_h264_parser_parse_pic_timing (nalparser, &sei->pic_timing, &nr);
} else
res = GST_H264_PARSER_OK;