aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vj.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-05-13 19:46:11 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-05-13 19:46:11 +0000
commitc91a384702e6d17254918e2291d28bfd2deddbdd (patch)
treee3d1280ddcbb3ea542ab9588b0e888da296a8cfe /epan/dissectors/packet-vj.c
parentfbd05f0fce6a10a1f3059c40628962bc056e10ef (diff)
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356
Diffstat (limited to 'epan/dissectors/packet-vj.c')
-rw-r--r--epan/dissectors/packet-vj.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-vj.c b/epan/dissectors/packet-vj.c
index a029aa426d..5ee51f0dd3 100644
--- a/epan/dissectors/packet-vj.c
+++ b/epan/dissectors/packet-vj.c
@@ -385,8 +385,7 @@ dissect_vjuc(tvbuff_t *tvb, packet_info *pinfo, proto_tree * tree)
ipsize = pntohs(&buffer[IP_FIELD_TOT_LEN]);
if (ipsize < isize)
isize = ipsize;
- next_tvb = tvb_new_real_data(buffer, isize, ipsize);
- tvb_set_child_real_data_tvbuff(tvb, next_tvb);
+ next_tvb = tvb_new_child_real_data(tvb, buffer, isize, ipsize);
add_new_data_source(pinfo, next_tvb, "VJ Uncompressed");
/*
@@ -512,8 +511,7 @@ vjc_tvb_setup(tvbuff_t *src_tvb,
memcpy(pbuf, data_ptr, hdr_len);
tvb_memcpy(src_tvb, pbuf + hdr_len, offset, buf_len - hdr_len);
memcpy(&tot_len, data_ptr + 2, 2);
- *dst_tvb = tvb_new_real_data(pbuf, buf_len, g_ntohs(tot_len));
- tvb_set_child_real_data_tvbuff(src_tvb, *dst_tvb);
+ *dst_tvb = tvb_new_child_real_data(src_tvb, pbuf, buf_len, g_ntohs(tot_len));
add_new_data_source(pinfo, *dst_tvb, "VJ Decompressed");
return VJ_OK;
}