rtpbasepayload: Fix payload type property boundary value
authorSebastian Rasmussen <sebrn@axis.com>
Thu, 30 Jan 2014 23:18:35 +0000 (00:18 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 24 Feb 2014 11:10:26 +0000 (12:10 +0100)
The payload type field in an RTP packet header is 7 bits wide, hence the
boundary values ought to be 0x00 and 0x7f, not the previously stated
values 0x00 and 0x80.

gst-libs/gst/rtp/gstrtpbasepayload.c

index c0893c7..83daed5 100644 (file)
@@ -183,7 +183,7 @@ gst_rtp_base_payload_class_init (GstRTPBasePayloadClass * klass)
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PT,
       g_param_spec_uint ("pt", "payload type",
-          "The payload type of the packets", 0, 0x80, DEFAULT_PT,
+          "The payload type of the packets", 0, 0x7f, DEFAULT_PT,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SSRC,
       g_param_spec_uint ("ssrc", "SSRC",