gst-libs/gst/rtp/gstrtpbuffer.c: A buffer with an empty payload is also a valid buffer.

Original commit message from CVS:
* gst-libs/gst/rtp/gstrtpbuffer.c: (gst_rtp_buffer_validate_data):
A buffer with an empty payload is also a valid buffer.
This commit is contained in:
Wim Taymans 2007-09-15 00:29:11 +00:00
parent 06ded6258e
commit a884abc111
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-09-14 Wim Taymans <wim.taymans@gmail.com>
* gst-libs/gst/rtp/gstrtpbuffer.c: (gst_rtp_buffer_validate_data):
A buffer with an empty payload is also a valid buffer.
2007-09-14 Wim Taymans <wim.taymans@gmail.com>
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_event),

View file

@ -346,7 +346,7 @@ gst_rtp_buffer_validate_data (guint8 * data, guint len)
padding = 0;
/* check if padding not bigger than packet and header */
if (G_UNLIKELY (len - header_len <= padding))
if (G_UNLIKELY (len - header_len < padding))
goto wrong_padding;
return TRUE;
@ -364,8 +364,7 @@ wrong_version:
}
wrong_padding:
{
GST_DEBUG ("padding check failed (%d - %d <= %d)",
len, header_len, padding);
GST_DEBUG ("padding check failed (%d - %d < %d)", len, header_len, padding);
return FALSE;
}
}