Commit 0bf9d8c6 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

rtpmparobustdepay: modify buffer data rather than buffer itself

parent c40807f6
......@@ -444,9 +444,11 @@ gst_rtp_mpa_robust_depay_deinterleave (GstRtpMPARobustDepay * rtpmpadepay,
}
}
/* rewrite buffer sync header */
val = GST_READ_UINT16_BE (buf);
gst_buffer_map (buf, &map, GST_MAP_READWRITE);
val = GST_READ_UINT16_BE (map.data);
val = (0x7ff << 5) | val;
GST_WRITE_UINT16_BE (buf, val);
GST_WRITE_UINT16_BE (map.data, val);
gst_buffer_unmap (buf, &map);
/* store and keep track of last indices */
rtpmpadepay->last_icc = icc;
rtpmpadepay->last_ii = iindex;
......
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