h264parse: correct parsing of "numberOfPictureParameterSets"

See #661113.
This commit is contained in:
Sreerenj Balachandran 2011-10-06 16:55:43 +03:00 committed by Mark Nauwelaerts
parent 61a7e6bf38
commit 0a478db7dd

View File

@ -1257,9 +1257,9 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
off = nalu.offset + nalu.size; off = nalu.offset + nalu.size;
} }
num_pps = data[0]; num_pps = data[off];
data++; off++;
size++;
for (i = 0; i < num_pps; i++) { for (i = 0; i < num_pps; i++) {
parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser, parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
data, off, size, 2, &nalu); data, off, size, 2, &nalu);