mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
rtpmparobustdepay: modify buffer data rather than buffer itself
This commit is contained in:
parent
c40807f6aa
commit
0bf9d8c6a6
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue