From 29b32853d5c288a35d73a12081e2127698c7f31d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Jul 2010 14:07:49 +0200 Subject: [PATCH] rtph263pdepay: allow more clock-rates as input Although the spec says that the clock-rate should always be 90000, some rtsp servers send different clock-rates so we must accept then in order to handle those streams too. --- gst/rtp/gstrtph263pdepay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/rtp/gstrtph263pdepay.c b/gst/rtp/gstrtph263pdepay.c index 60176220e6..9be2f366e4 100644 --- a/gst/rtp/gstrtph263pdepay.c +++ b/gst/rtp/gstrtph263pdepay.c @@ -40,7 +40,8 @@ static GstStaticPadTemplate gst_rtp_h263p_depay_sink_template = GST_STATIC_CAPS ("application/x-rtp, " "media = (string) \"video\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " - "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"; " + "clock-rate = (int) [1, MAX], " + "encoding-name = (string) \"H263-1998\"; " /* optional params */ /* NOTE all optional SDP params must be strings in the caps */ /* @@ -65,7 +66,8 @@ static GstStaticPadTemplate gst_rtp_h263p_depay_sink_template = "application/x-rtp, " "media = (string) \"video\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " - "clock-rate = (int) 90000, " "encoding-name = (string) \"H263-2000\" " + "clock-rate = (int) [1, MAX], " + "encoding-name = (string) \"H263-2000\" " /* optional params */ /* NOTE all optional SDP params must be strings in the caps */ /*