Carlos Bentzen b83b73841d webrtc: fix duplicate payload types with RTX and multiple video codecs
Before this patch, there could be duplicate payload types in offers that
have, within a media section, multiple codecs and RTX enabled:

```
m=video 9 UDP/TLS/RTP/SAVPF 96 97 97 <-- HAS DUPLICATES
a=sendrecv
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 transport-cc
a=rtpmap:97 H264/90000
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 transport-cc
a=rtpmap:97 rtx/90000  <--------- PT IS DUPLICATE
a=fmtp:97 apt=96
```

Fix this by populating the media_mapping array with all media formats
rather than only the first one. The added test case reproduces the issue,
which fails without this patch.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8259>
2025-01-13 10:11:59 +00:00
..
2024-07-24 12:07:09 +02:00
2024-11-11 13:39:50 +00:00
2024-10-25 13:55:19 +00:00
2023-08-08 22:12:29 +00:00
2024-10-02 20:33:13 +00:00
2024-10-25 13:55:19 +00:00
2024-09-18 20:37:10 +00:00
2024-10-19 16:31:13 +00:00
2023-08-30 15:45:12 +00:00
2024-07-30 17:51:51 +00:00
2024-05-02 13:26:09 +02:00
2024-10-25 13:55:19 +00:00
2024-02-02 17:23:08 +00:00
2024-11-27 13:04:57 +00:00
2024-11-18 14:25:34 +00:00