aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dvb-eit.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2012-09-03 21:18:50 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2012-09-03 21:18:50 +0000
commit677d843489766002025820172f02b669fd305040 (patch)
treebd60888d228e1b5af045acfbd23d483cdd822ffe /epan/dissectors/packet-dvb-eit.c
parent255801374732f9d87ef2d9634bc87e7ca21d2433 (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-eit.c')
-rw-r--r--epan/dissectors/packet-dvb-eit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dvb-eit.c b/epan/dissectors/packet-dvb-eit.c
index 150c907ae7..375f678ccc 100644
--- a/epan/dissectors/packet-dvb-eit.c
+++ b/epan/dissectors/packet-dvb-eit.c
@@ -112,9 +112,6 @@ dissect_dvb_eit(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_INFO, "Event Information Table (EIT)");
- if (!tree)
- return;
-
ti = proto_tree_add_item(tree, proto_dvb_eit, tvb, offset, -1, ENC_NA);
dvb_eit_tree = proto_item_add_subtree(ti, ett_dvb_eit);
@@ -195,7 +192,8 @@ dissect_dvb_eit(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
- packet_mpeg_sect_crc(tvb, pinfo, dvb_eit_tree, 0, offset);
+ offset += packet_mpeg_sect_crc(tvb, pinfo, dvb_eit_tree, 0, offset);
+ proto_item_set_len(ti, offset);
}