mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
gst-libs/gst/rtp/gstrtpbuffer.c: Fix bug introduced with last commit which inverted the logic and caused all buffers ...
Original commit message from CVS: * gst-libs/gst/rtp/gstrtpbuffer.c: (gst_rtp_buffer_get_payload_subbuffer): Fix bug introduced with last commit which inverted the logic and caused all buffers to be dropped. Fixes #483620. Thanks to Laurent Glayal <spglegle at yahoo dot fr> for noticing.
This commit is contained in:
parent
ff01787e4e
commit
6e51063659
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-10-05 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst-libs/gst/rtp/gstrtpbuffer.c:
|
||||
(gst_rtp_buffer_get_payload_subbuffer):
|
||||
Fix bug introduced with last commit which inverted the logic and
|
||||
caused all buffers to be dropped. Fixes #483620.
|
||||
Thanks to Laurent Glayal <spglegle at yahoo dot fr> for noticing.
|
||||
|
||||
2007-10-04 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst-libs/gst/rtp/gstrtpbuffer.c:
|
||||
|
|
|
@ -875,7 +875,7 @@ gst_rtp_buffer_get_payload_subbuffer (GstBuffer * buffer, guint offset,
|
|||
|
||||
plen = gst_rtp_buffer_get_payload_len (buffer);
|
||||
/* we can't go past the length */
|
||||
if (G_UNLIKELY (offset < plen)) {
|
||||
if (G_UNLIKELY (offset >= plen)) {
|
||||
GST_WARNING ("offset=%u should be less then plen=%u", offset, plen);
|
||||
return (NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue