mpeg4videoparse: avoid crash if vos < 5 bytes.
This commit is contained in:
parent
ec0c87486f
commit
e2da34e6b6
@ -358,6 +358,9 @@ gst_mpeg4vparse_handle_vos (GstMpeg4VParse * parse, const guint8 * data,
|
|||||||
gboolean equal;
|
gboolean equal;
|
||||||
bitstream_t bs = { data, 0, 0, size };
|
bitstream_t bs = { data, 0, 0, size };
|
||||||
|
|
||||||
|
if (size < 5)
|
||||||
|
goto failed;
|
||||||
|
|
||||||
/* Parse the config from the VOS frame */
|
/* Parse the config from the VOS frame */
|
||||||
bs.offset = 5;
|
bs.offset = 5;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user