mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
rtpbuffer: Off-by-one error when creating RTP header extensions with a two-byte header
This commit is contained in:
parent
093a91eec8
commit
103fb67d20
1 changed files with 1 additions and 1 deletions
|
@ -1782,7 +1782,7 @@ gst_rtp_buffer_add_extension_twobytes_header (GstBuffer * buffer,
|
|||
gst_rtp_buffer_set_extension_data (buffer, (0x100 << 4) | (appbits & 0x0F),
|
||||
wordlen);
|
||||
} else {
|
||||
wordlen = (size + 1) / 4 + (((size + 1) % 4) ? 1 : 0);
|
||||
wordlen = (size + 2) / 4 + (((size + 2) % 4) ? 1 : 0);
|
||||
|
||||
gst_rtp_buffer_set_extension_data (buffer, (0x100 << 4) | (appbits & 0x0F),
|
||||
wordlen);
|
||||
|
|
Loading…
Reference in a new issue