mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
oggstream: fix crash with 0 byte ogg packets
https://bugzilla.gnome.org/show_bug.cgi?id=687030
This commit is contained in:
parent
f816f94995
commit
7f22e3ea7f
1 changed files with 1 additions and 1 deletions
|
@ -790,7 +790,7 @@ setup_vorbis_mapper (GstOggStream * pad, ogg_packet * packet)
|
||||||
static gboolean
|
static gboolean
|
||||||
is_header_vorbis (GstOggStream * pad, ogg_packet * packet)
|
is_header_vorbis (GstOggStream * pad, ogg_packet * packet)
|
||||||
{
|
{
|
||||||
if (packet->bytes > 0 && (packet->packet[0] & 0x01) == 0)
|
if (packet->bytes == 0 || (packet->packet[0] & 0x01) == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (packet->packet[0] == 5) {
|
if (packet->packet[0] == 5) {
|
||||||
|
|
Loading…
Reference in a new issue