h264parse: Ensure codec_data has the required size when reading number of SPS

https://bugzilla.gnome.org/show_bug.cgi?id=774896
This commit is contained in:
Sebastian Dröge 2016-11-23 10:51:17 +02:00
parent 4a0214335f
commit 1dbfef93d6

View file

@ -2583,6 +2583,10 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
off = nalu.offset + nalu.size;
}
if (off >= size) {
gst_buffer_unmap (codec_data, &map);
goto avcc_too_small;
}
num_pps = data[off];
off++;