[Bug 774959] New: rtpbuffer: fix ensure_buffers
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Nov 23 19:19:07 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=774959
Bug ID: 774959
Summary: rtpbuffer: fix ensure_buffers
Classification: Platform
Product: GStreamer
Version: 1.8.3
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-base
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: mparisdiaz at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 340638
--> https://bugzilla.gnome.org/attachment.cgi?id=340638&action=edit
rtpbuffer: fix ensure_buffers
I have noticed that when gst_rtp_buffer_add_extension_onebyte_header is used
over a GstRtpBuffer that only contains a memory for the whole packet,
ensure_buffers function crashes at the next point:
mem = gst_memory_copy (rtp->map[i].memory, offset, rtp->size[i]);
when i==2 because the payload is not mapped.
In addition the offset is calculated subtracting in the wrong direction.
The attached patch fixes these issues.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list