mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
oggstream: correctly identify skeleton EOS packet
It is 0 byte, and was triggering the "bad packet" logic. https://bugzilla.gnome.org/show_bug.cgi?id=657151
This commit is contained in:
parent
68ed992e7e
commit
1e606c0456
1 changed files with 5 additions and 2 deletions
|
@ -1111,12 +1111,15 @@ gst_ogg_map_parse_fisbone (GstOggStream * pad, const guint8 * data, guint size,
|
|||
GstOggSkeleton stype;
|
||||
guint serial_offset;
|
||||
|
||||
if (size < SKELETON_FISBONE_MIN_SIZE) {
|
||||
if (size != 0 && size < SKELETON_FISBONE_MIN_SIZE) {
|
||||
GST_WARNING ("small fisbone packet of size %d, ignoring", size);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (memcmp (data, "fisbone\0", 8) == 0) {
|
||||
if (size == 0) {
|
||||
/* Skeleton EOS packet is zero bytes */
|
||||
return FALSE;
|
||||
} else if (memcmp (data, "fisbone\0", 8) == 0) {
|
||||
GST_INFO ("got fisbone packet");
|
||||
stype = GST_OGG_SKELETON_FISBONE;
|
||||
serial_offset = 12;
|
||||
|
|
Loading…
Reference in a new issue