mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
rtpst2022-1-fecdec: don't xor out of bounds
When reconstituting packets from a stream with variable packet sizes, don't xor larger packets past the length of the protected packet Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/839>
This commit is contained in:
parent
6d98415fd4
commit
6d4dcb430d
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ xor_items (GstRTPST_2022_1_FecDec * dec, Rtp2DFecHeader * fec, GList * packets,
|
|||
|
||||
gst_rtp_buffer_map (item->buffer, GST_MAP_READ, &media_rtp);
|
||||
_xor_mem (xored, gst_rtp_buffer_get_payload (&media_rtp),
|
||||
gst_rtp_buffer_get_payload_len (&media_rtp));
|
||||
MIN (gst_rtp_buffer_get_payload_len (&media_rtp), xored_payload_len));
|
||||
xored_timestamp ^= gst_rtp_buffer_get_timestamp (&media_rtp);
|
||||
xored_pt ^= gst_rtp_buffer_get_payload_type (&media_rtp);
|
||||
xored_marker ^= gst_rtp_buffer_get_marker (&media_rtp);
|
||||
|
|
Loading…
Reference in a new issue