diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-03 21:18:50 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-03 21:18:50 +0000 |
commit | 677d843489766002025820172f02b669fd305040 (patch) | |
tree | bd60888d228e1b5af045acfbd23d483cdd822ffe /epan/dissectors/packet-dvb-tot.c | |
parent | 255801374732f9d87ef2d9634bc87e7ca21d2433 (diff) |
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
Diffstat (limited to 'epan/dissectors/packet-dvb-tot.c')
-rw-r--r-- | epan/dissectors/packet-dvb-tot.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |