mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
oggdemux: Fix size checks
This commit is contained in:
parent
8fd69f2cb7
commit
bf9d573cd1
2 changed files with 2 additions and 2 deletions
|
@ -490,7 +490,7 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet,
|
|||
/* We don't push header packets for VP8 */
|
||||
cret = gst_ogg_demux_combine_flows (ogg, pad, GST_FLOW_OK);
|
||||
goto done;
|
||||
} else if (packet->b_o_s || (packet->bytes >= 5
|
||||
} else if (packet->b_o_s || (packet->bytes >= 6
|
||||
&& memcmp (packet->packet, "OVP80", 6) == 0)) {
|
||||
/* We don't push header packets for VP8 */
|
||||
cret = gst_ogg_demux_combine_flows (ogg, pad, GST_FLOW_OK);
|
||||
|
|
|
@ -595,7 +595,7 @@ granulepos_to_key_granule_vp8 (GstOggStream * pad, gint64 granulepos)
|
|||
static gboolean
|
||||
is_header_vp8 (GstOggStream * pad, ogg_packet * packet)
|
||||
{
|
||||
if (packet->bytes > 6 && packet->packet[0] == 0x4F &&
|
||||
if (packet->bytes >= 5 && packet->packet[0] == 0x4F &&
|
||||
packet->packet[1] == 0x56 && packet->packet[2] == 0x50 &&
|
||||
packet->packet[3] == 0x38 && packet->packet[4] == 0x30)
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue