mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +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 */
|
/* 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;
|
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 */
|
/* store and keep track of last indices */
|
||||||
rtpmpadepay->last_icc = icc;
|
rtpmpadepay->last_icc = icc;
|
||||||
rtpmpadepay->last_ii = iindex;
|
rtpmpadepay->last_ii = iindex;
|
||||||
|
|
Loading…
Reference in a new issue