From 677d843489766002025820172f02b669fd305040 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Mon, 3 Sep 2012 21:18:50 +0000 Subject: highlight only the actual bytes of EIT, SDT, TDT, TOT and BAT minor whitespace cleanup skip initialization and 'if (tree)' where it's not required svn path=/trunk/; revision=44761 --- epan/dissectors/packet-dvb-tot.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-dvb-tot.c') diff --git a/epan/dissectors/packet-dvb-tot.c b/epan/dissectors/packet-dvb-tot.c index 728bdf3ad7..9128743dbb 100644 --- a/epan/dissectors/packet-dvb-tot.c +++ b/epan/dissectors/packet-dvb-tot.c @@ -60,9 +60,6 @@ dissect_dvb_tot(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_INFO, "Time Offset Table (TOT)"); - if (!tree) - return; - ti = proto_tree_add_item(tree, proto_dvb_tot, tvb, offset, -1, ENC_NA); dvb_tot_tree = proto_item_add_subtree(ti, ett_dvb_tot); @@ -86,7 +83,8 @@ dissect_dvb_tot(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) while (offset < descriptor_end) offset += proto_mpeg_descriptor_dissect(tvb, offset, dvb_tot_tree); - packet_mpeg_sect_crc(tvb, pinfo, dvb_tot_tree, 0, offset); + offset += packet_mpeg_sect_crc(tvb, pinfo, dvb_tot_tree, 0, offset); + proto_item_set_len(ti, offset); } -- cgit v1.2.3