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:
parent
4a0214335f
commit
1dbfef93d6
@ -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++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user