From 248a1c86e0e4d60ec52ac13700fe392a2677cdf2 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 20 Dec 2011 14:04:52 +0100 Subject: [PATCH] codecparsers: h264: clear sei message prior to parsing Fixes #666584. --- gst-libs/gst/codecparsers/gsth264parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 0e14546b8d..6a164ecb1f 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -1091,6 +1091,7 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser, guint8 num_clock_num_ts; guint i; + tim->pic_struct_present_flag = TRUE; READ_UINT8 (nr, tim->pic_struct, 4); CHECK_ALLOWED ((gint8) tim->pic_struct, 0, 8); @@ -1907,6 +1908,9 @@ gst_h264_parser_parse_sei (GstH264NalParser * nalparser, GstH264NalUnit * nalu, nal_reader_init (&nr, nalu->data + nalu->offset + 1, nalu->size - 1); + /* init */ + memset (sei, 0, sizeof (*sei)); + sei->payloadType = 0; do { READ_UINT8 (&nr, payload_type_byte, 8);