mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
06ded6258e
commit
a884abc111
2 changed files with 7 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue