codecparsers: h264: fix SEI parsing
authorJonas Larsson <jonas@hallerud.se>
Wed, 15 Feb 2012 14:07:35 +0000 (15:07 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 15 Feb 2012 14:10:06 +0000 (15:10 +0100)
... in the presence of emulation_prevention_three_byte.

Fixes #668381.

gst-libs/gst/codecparsers/gsth264parser.c

index 2f18ffd..572a28d 100644 (file)
@@ -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;