mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
ac3parse: ensure sufficient data available for parsing
This commit is contained in:
parent
f3dbcb668a
commit
c5847abf30
1 changed files with 3 additions and 0 deletions
|
@ -387,6 +387,9 @@ gst_ac3_parse_check_valid_frame (GstBaseParse * parse, GstBuffer * buf,
|
|||
gint off;
|
||||
gboolean sync, drain;
|
||||
|
||||
if (G_UNLIKELY (GST_BUFFER_SIZE (buf) < 6))
|
||||
return FALSE;
|
||||
|
||||
off = gst_byte_reader_masked_scan_uint32 (&reader, 0xffff0000, 0x0b770000,
|
||||
0, GST_BUFFER_SIZE (buf));
|
||||
|
||||
|
|
Loading…
Reference in a new issue