mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
mpeg4videoparse: avoid crash if vos < 5 bytes.
This commit is contained in:
parent
ec0c87486f
commit
e2da34e6b6
1 changed files with 3 additions and 0 deletions
|
@ -358,6 +358,9 @@ gst_mpeg4vparse_handle_vos (GstMpeg4VParse * parse, const guint8 * data,
|
|||
gboolean equal;
|
||||
bitstream_t bs = { data, 0, 0, size };
|
||||
|
||||
if (size < 5)
|
||||
goto failed;
|
||||
|
||||
/* Parse the config from the VOS frame */
|
||||
bs.offset = 5;
|
||||
|
||||
|
|
Loading…
Reference in a new issue