mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 08:58:15 +00:00
rtp: Don't restrict payload types for payloaders
WebRTC uses payload types 35-63 as dynamic payload types too to be able to place more codec variants into the SDP offer. Instead of allowing just certain payload types, completely remove any restrictions and let the user decide. There's technically nothing wrong with using any payload type, especially when using the encoding-name. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/551 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1595>
This commit is contained in:
parent
205cc10e6e
commit
ac79b52cff
3 changed files with 2 additions and 4 deletions
|
@ -6254,7 +6254,7 @@
|
|||
"long-name": "RTP AV1 Depayloader",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "application/x-rtp:\n media: video\n payload: [ 96, 127 ]\n clock-rate: 90000\n encoding-name: AV1\n",
|
||||
"caps": "application/x-rtp:\n media: video\n clock-rate: 90000\n encoding-name: AV1\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
@ -6286,7 +6286,7 @@
|
|||
"presence": "always"
|
||||
},
|
||||
"src": {
|
||||
"caps": "application/x-rtp:\n media: video\n payload: [ 96, 127 ]\n clock-rate: 90000\n encoding-name: AV1\n",
|
||||
"caps": "application/x-rtp:\n media: video\n clock-rate: 90000\n encoding-name: AV1\n",
|
||||
"direction": "src",
|
||||
"presence": "always"
|
||||
}
|
||||
|
|
|
@ -107,7 +107,6 @@ impl ElementImpl for RTPAv1Depay {
|
|||
gst::PadPresence::Always,
|
||||
&gst::Caps::builder("application/x-rtp")
|
||||
.field("media", "video")
|
||||
.field("payload", gst::IntRange::new(96, 127))
|
||||
.field("clock-rate", CLOCK_RATE as i32)
|
||||
.field("encoding-name", "AV1")
|
||||
.build(),
|
||||
|
|
|
@ -598,7 +598,6 @@ impl ElementImpl for RTPAv1Pay {
|
|||
gst::PadPresence::Always,
|
||||
&gst::Caps::builder("application/x-rtp")
|
||||
.field("media", "video")
|
||||
.field("payload", gst::IntRange::new(96, 127))
|
||||
.field("clock-rate", CLOCK_RATE as i32)
|
||||
.field("encoding-name", "AV1")
|
||||
.build(),
|
||||
|
|
Loading…
Reference in a new issue