diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-06-14 09:34:14 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-06-14 09:34:14 +0000 |
commit | 32ec2215b272d7c95f048b6856dc43146d05e220 (patch) | |
tree | 08edbe087752a6853d5564455af7d95202571161 /packet-rtp.c | |
parent | 9ab384d16b25dc06a358b6b859cbf240fe955356 (diff) |
Set the reported length of the tvbuff we hand to the MPEG1 dissector.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3545 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtp.c')
-rw-r--r-- | packet-rtp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-rtp.c b/packet-rtp.c index 5b44768815..25abc599f9 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.17 2001/06/14 09:25:23 guy Exp $ + * $Id: packet-rtp.c,v 1.18 2001/06/14 09:34:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -303,8 +303,10 @@ 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 ); + + case PT_MPV: + newtvb = tvb_new_subset( tvb, offset, data_len, + data_reported_len ); call_dissector(mpeg1_handle, newtvb, pinfo, tree); break; |