aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-14 09:34:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-14 09:34:14 +0000
commitd9fe106f0db9edb4f3a17902394621f3ed810881 (patch)
tree08edbe087752a6853d5564455af7d95202571161 /packet-rtp.c
parent278d0dcf9058a68e463f3ebaaa364cc847c3d713 (diff)
Set the reported length of the tvbuff we hand to the MPEG1 dissector.
svn path=/trunk/; revision=3545
Diffstat (limited to 'packet-rtp.c')
-rw-r--r--packet-rtp.c8
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;