mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
redenc: fix setting of extension ID for twcc
1 was previously hardcoded in, and the bug went under the radar because webrtcsink hardcodes the number too. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3793>
This commit is contained in:
parent
54697df6e3
commit
f08994583f
1 changed files with 2 additions and 2 deletions
|
@ -200,8 +200,8 @@ _alloc_red_packet_and_fill_headers (GstRtpRedEnc * self,
|
|||
* for our wrapper */
|
||||
if (gst_rtp_buffer_get_extension_onebyte_header (inp_rtp, self->twcc_ext_id,
|
||||
0, &inp_data, &inp_size)) {
|
||||
gst_rtp_buffer_add_extension_onebyte_header (&red_rtp, 1, &data,
|
||||
sizeof (guint16));
|
||||
gst_rtp_buffer_add_extension_onebyte_header (&red_rtp, self->twcc_ext_id,
|
||||
&data, sizeof (guint16));
|
||||
} else if (gst_rtp_buffer_get_extension_twobytes_header (inp_rtp, &appbits,
|
||||
self->twcc_ext_id, 0, &inp_data, &inp_size)) {
|
||||
gst_rtp_buffer_add_extension_twobytes_header (&red_rtp, appbits,
|
||||
|
|
Loading…
Reference in a new issue