From 5e0329235e6e0fb8ab849b68ff583546b0d940a7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 8 Apr 2015 11:17:31 +0200 Subject: [PATCH] rtph263depay: Fix framesize parsing The string passed to the parsing function only contains a framesize, and not + Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726416 --- gst/rtp/gstrtph263depay.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/gst/rtp/gstrtph263depay.c b/gst/rtp/gstrtph263depay.c index 749da5369a..a63b0b13a3 100644 --- a/gst/rtp/gstrtph263depay.c +++ b/gst/rtp/gstrtph263depay.c @@ -141,24 +141,10 @@ gst_rtp_h263_parse_framesize (GstRTPBaseDepayload * filter, const gchar * media_attr, GstCaps * srccaps) { gchar *dimension, *endptr; - gint pt, width, height; + gint width, height; GstStructure *d; - /* - */ - - pt = g_ascii_strtoull (media_attr, &endptr, 10); - if (pt != GST_RTP_PAYLOAD_H263) { - GST_ERROR_OBJECT (filter, - "Framesize media attribute has incorrect payload type"); - return FALSE; - } else if (*endptr != ' ') { - GST_ERROR_OBJECT (filter, - "Framesize media attribute has invalid payload type separator"); - return FALSE; - } - - dimension = endptr + 1; - width = g_ascii_strtoull (dimension, &endptr, 10); + width = g_ascii_strtoull (media_attr, &endptr, 10); if (width <= 0) { GST_ERROR_OBJECT (filter, "Framesize media attribute width out of valid range");