Commit 103fb67d authored by Olivier Crête's avatar Olivier Crête
Browse files

rtpbuffer: Off-by-one error when creating RTP header extensions with a two-byte header

parent 093a91ee
......@@ -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);
......
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