rtph264pay: append packetization mode parameter to SDP
authorSrimanta Panda <srimanta@axis.com>
Tue, 5 Aug 2014 09:47:39 +0000 (11:47 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 8 Aug 2014 12:41:36 +0000 (13:41 +0100)
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

gst/rtp/gstrtph264pay.c

index c451c71..da3faf4 100644 (file)
@@ -395,11 +395,13 @@ gst_rtp_h264_pay_set_sps_pps (GstRTPBasePayload * basepayload)
       profile = g_strdup_printf ("%06x", payloader->profile & 0xffffff);
       /* combine into output caps */
       res = gst_rtp_base_payload_set_outcaps (basepayload,
+          "packetization-mode", G_TYPE_STRING, "1",
           "profile-level-id", G_TYPE_STRING, profile,
           "sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
       g_free (profile);
     } else {
       res = gst_rtp_base_payload_set_outcaps (basepayload,
+          "packetization-mode", G_TYPE_STRING, "1",
           "sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL);
     }