rtpvp8: Use VP8 encoding name
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 1 Nov 2014 14:14:31 +0000 (10:14 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 1 Nov 2014 15:26:26 +0000 (11:26 -0400)
Both Firefox and Chrome uses VP8 as the encoding in their SDP.
Adding this now defacto standard name removes the need for special
case in SDP parsing code.

https://bugzilla.gnome.org/show_bug.cgi?id=737810

gst/rtp/gstrtpvp8depay.c
gst/rtp/gstrtpvp8pay.c

index 40f3375..fed9779 100644 (file)
@@ -48,7 +48,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
     GST_STATIC_CAPS ("application/x-rtp, "
         "clock-rate = (int) 90000,"
         "media = (string) \"video\","
-        "encoding-name = (string) \"VP8-DRAFT-IETF-01\""));
+        "encoding-name = (string) { \"VP8\", \"VP8-DRAFT-IETF-01\" }"));
 
 static void
 gst_rtp_vp8_depay_init (GstRtpVP8Depay * self)
index f3ad845..4898954 100644 (file)
@@ -82,7 +82,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS ("application/x-rtp, "
         "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ","
-        "clock-rate = (int) 90000, encoding-name = (string) \"VP8-DRAFT-IETF-01\""));
+        "clock-rate = (int) 90000, encoding-name = (string) { \"VP8\", \"VP8-DRAFT-IETF-01\" }"));
 
 static GstStaticPadTemplate gst_rtp_vp8_pay_sink_template =
 GST_STATIC_PAD_TEMPLATE ("sink",