diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-06-14 09:25:25 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-06-14 09:25:25 +0000 |
commit | 9ab384d16b25dc06a358b6b859cbf240fe955356 (patch) | |
tree | 93d5f6b5646383acd2eb086122bc70723b32548c /packet-rtp.c | |
parent | 803efabefb8fc783a9fdd929a59a9d05a375436a (diff) |
RFC 2250 MPEG1 support, from Francisco Javier Cabello.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3544 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtp.c')
-rw-r--r-- | packet-rtp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-rtp.c b/packet-rtp.c index 61a9e16905..5b44768815 100644 --- a/packet-rtp.c +++ b/packet-rtp.c @@ -6,7 +6,7 @@ * Copyright 2000, Philips Electronics N.V. * Written by Andreas Sikkema <andreas.sikkema@philips.com> * - * $Id: packet-rtp.c,v 1.16 2001/06/14 07:05:51 guy Exp $ + * $Id: packet-rtp.c,v 1.17 2001/06/14 09:25:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -99,6 +99,7 @@ static gint ett_csrc_list = -1; static gint ett_hdr_ext = -1; static dissector_handle_t h261_handle; +static dissector_handle_t mpeg1_handle; /* * Fields in the first octet of the RTP header. @@ -302,6 +303,11 @@ dissect_rtp_data( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, data_reported_len ); call_dissector(h261_handle, newtvb, pinfo, tree); break; + case PT_MPV: + newtvb = tvb_new_subset( tvb, offset, data_len, -1 ); + call_dissector(mpeg1_handle, newtvb, pinfo, tree); + break; + default: proto_tree_add_bytes( rtp_tree, hf_rtp_data, tvb, offset, data_len, tvb_get_ptr( tvb, offset, data_len ) ); break; @@ -716,9 +722,10 @@ void proto_reg_handoff_rtp(void) { /* - * Get handle for the H.261 dissector. + * Get handles for the H.261 and MPEG-1 dissectors. */ h261_handle = find_dissector("h261"); + mpeg1_handle = find_dissector("mpeg1"); /* * Register this dissector as one that can be assigned to a |