From 0a478db7dd5909f8f7281db352b227965c45e094 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Thu, 6 Oct 2011 16:55:43 +0300 Subject: [PATCH] h264parse: correct parsing of "numberOfPictureParameterSets" See #661113. --- gst/videoparsers/gsth264parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 63301551f5..afc17bdd2b 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1257,9 +1257,9 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) off = nalu.offset + nalu.size; } - num_pps = data[0]; - data++; - size++; + num_pps = data[off]; + off++; + for (i = 0; i < num_pps; i++) { parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser, data, off, size, 2, &nalu);