summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2011-10-06 16:55:43 +0300
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-10-17 11:17:47 +0200
commit0a478db7dd5909f8f7281db352b227965c45e094 (patch)
tree0c1826b7365acf005a88db7626ffd9c0e86016f9 /gst
parent61a7e6bf38c01d555d01c44636b7f95176dc9482 (diff)
h264parse: correct parsing of "numberOfPictureParameterSets"
See #661113.
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gsth264parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 63301551f..afc17bdd2 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);