rtp/redenc|ulpfecenc: add support for TWCC
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 3 Dec 2021 01:52:06 +0000 (02:52 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 14 Dec 2021 03:26:56 +0000 (03:26 +0000)
commit5dc280de9f0e198499765a03a7b84fda7095d110
treee2935d4a6dde94db6e96995b490bfea9a8b9d64c
parent49055f1cd5b5b97c23827ca22f4b0b0db6a3de72
rtp/redenc|ulpfecenc: add support for TWCC

In redenc, when input buffers have a header for the TWCC extension,
we now add one to our wrapper buffers.

In ulpfecenc we add one in that case to our protection buffers.

This makes TWCC functional when UlpRed is used in webrtcbin.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1414>
subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.c
subprojects/gst-plugins-good/gst/rtp/gstrtpredenc.h
subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.c
subprojects/gst-plugins-good/gst/rtp/gstrtpulpfecenc.h
subprojects/gst-plugins-good/tests/check/elements/rtpred.c