mpeg4videoparse: avoid crash if vos < 5 bytes.

This commit is contained in:
Michael Smith 2010-01-06 11:20:06 -08:00
parent ec0c87486f
commit e2da34e6b6

View file

@ -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;