Commit a884abc1 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 06ded625
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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment