From 3e83399103c5e95c0e9e6ab0a6660801c3591cfe Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 24 Jan 2023 22:50:37 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c index 7f234bc0d6..94062fea94 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c @@ -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,