mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtph263depay: handle a few FIXMEs
This commit is contained in:
parent
3692bbb7ae
commit
e7903311f5
1 changed files with 7 additions and 7 deletions
|
@ -270,17 +270,17 @@ gst_rtp_h263_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EBIT) {
|
if (!EBIT) {
|
||||||
GstBuffer *tmp = gst_buffer_new_and_alloc (payload_len);
|
GstBuffer *tmp;
|
||||||
|
|
||||||
/* Copy the entire buffer, FIXME, use subbuffers */
|
/* Take the entire buffer */
|
||||||
memcpy (GST_BUFFER_DATA (tmp), payload, payload_len);
|
tmp = gst_rtp_buffer_get_payload_subbuffer (buf, header_len, payload_len);
|
||||||
gst_adapter_push (rtph263depay->adapter, tmp);
|
gst_adapter_push (rtph263depay->adapter, tmp);
|
||||||
} else {
|
} else {
|
||||||
GstBuffer *tmp = gst_buffer_new_and_alloc (payload_len - 1);
|
GstBuffer *tmp;
|
||||||
|
|
||||||
/* Copy the entire buffer except for the last byte. FIXME, use
|
/* Take the entire buffer except for the last byte */
|
||||||
* subbuffers. */
|
tmp = gst_rtp_buffer_get_payload_subbuffer (buf, header_len,
|
||||||
memcpy (GST_BUFFER_DATA (tmp), payload, payload_len - 1);
|
payload_len - 1);
|
||||||
gst_adapter_push (rtph263depay->adapter, tmp);
|
gst_adapter_push (rtph263depay->adapter, tmp);
|
||||||
|
|
||||||
/* Put the last byte into the leftover */
|
/* Put the last byte into the leftover */
|
||||||
|
|
Loading…
Reference in a new issue