mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
rtph264pay: append packetization mode parameter to SDP
Append packetization-mode parameter to SDP description. Packetization mode signals the properties of an RTP payload type. https://bugzilla.gnome.org/show_bug.cgi?id=733556
This commit is contained in:
parent
d9e1aa4959
commit
421b00cd17
1 changed files with 2 additions and 0 deletions
|
@ -395,11 +395,13 @@ gst_rtp_h264_pay_set_sps_pps (GstRTPBasePayload * basepayload)
|
||||||
profile = g_strdup_printf ("%06x", payloader->profile & 0xffffff);
|
profile = g_strdup_printf ("%06x", payloader->profile & 0xffffff);
|
||||||
/* combine into output caps */
|
/* combine into output caps */
|
||||||
res = gst_rtp_base_payload_set_outcaps (basepayload,
|
res = gst_rtp_base_payload_set_outcaps (basepayload,
|
||||||
|
"packetization-mode", G_TYPE_STRING, "1",
|
||||||
"profile-level-id", G_TYPE_STRING, profile,
|
"profile-level-id", G_TYPE_STRING, profile,
|
||||||
"sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
|
"sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
|
||||||
g_free (profile);
|
g_free (profile);
|
||||||
} else {
|
} else {
|
||||||
res = gst_rtp_base_payload_set_outcaps (basepayload,
|
res = gst_rtp_base_payload_set_outcaps (basepayload,
|
||||||
|
"packetization-mode", G_TYPE_STRING, "1",
|
||||||
"sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
|
"sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue