mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue