mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-06 08:09:56 +00:00
oggstream: Ensure enough bytes for fishead header parsing
This commit is contained in:
parent
af48682d44
commit
5e373936bb
1 changed files with 5 additions and 0 deletions
|
@ -1162,6 +1162,11 @@ setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
gint64 prestime_n, prestime_d;
|
||||
gint64 basetime_n, basetime_d;
|
||||
|
||||
if (packet->bytes < 44) {
|
||||
GST_DEBUG ("Not enough data for fishead header");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
data = packet->packet;
|
||||
|
||||
data += 8; /* header */
|
||||
|
|
Loading…
Reference in a new issue