aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sdp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-07-29 15:58:43 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-07-29 15:58:43 +0000
commitfec43e23503a3efd5e2ad65f5e806a06d02ac9d9 (patch)
tree4600bc8103b73ba62884c1d77f6d31076badf411 /epan/dissectors/packet-sdp.c
parent08e72dc35b26efd8fcd009a43ff477f9e1d3970f (diff)
Update mimetype_and_clock_map and ad samle rate to sdp.
svn path=/trunk/; revision=25860
Diffstat (limited to 'epan/dissectors/packet-sdp.c')
-rw-r--r--epan/dissectors/packet-sdp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sdp.c b/epan/dissectors/packet-sdp.c
index 3bb4786dad..97f7249591 100644
--- a/epan/dissectors/packet-sdp.c
+++ b/epan/dissectors/packet-sdp.c
@@ -161,6 +161,7 @@ static int hf_media_format = -1;
static int hf_media_attribute_field = -1;
static int hf_media_attribute_value = -1;
static int hf_media_encoding_name = -1;
+static int hf_media_sample_rate = -1;
static int hf_media_format_specific_parameter = -1;
static int hf_sdp_fmtp_mpeg4_profile_level_id = -1;
static int hf_sdp_fmtp_h263_profile = -1;
@@ -1575,6 +1576,12 @@ static void dissect_sdp_media_attribute(tvbuff_t *tvb, packet_info *pinfo, proto
key=g_malloc( sizeof(gint) );
*key=atol((char*)payload_type);
+ offset = next_offset + 1;
+ tvb_find_line_end_unquoted(tvb, offset, -1, &next_offset);
+
+ tokenlen = next_offset - offset;
+ proto_tree_add_item(sdp_media_attribute_tree, hf_media_sample_rate, tvb,
+ offset, tokenlen, FALSE);
/* As per RFC2327 it is possible to have multiple Media Descriptions ("m=").
For example:
@@ -1929,6 +1936,10 @@ proto_register_sdp(void)
{ "MIME Type",
"sdp.mime.type",FT_STRING, BASE_NONE, NULL, 0x0,
"SDP MIME Type", HFILL }},
+ { &hf_media_sample_rate,
+ { "Sample Rate",
+ "sdp.sample_rate",FT_STRING, BASE_NONE, NULL, 0x0,
+ "Sample Rate", HFILL }},
{ &hf_media_format_specific_parameter,
{ "Media format specific parameters",
"sdp.fmtp.parameter",FT_STRING, BASE_NONE, NULL, 0x0,