aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dvb-tot.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-04-02 19:00:09 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-04-02 19:00:09 +0000
commit99c490d375c69bf26a89e13a68302b7fa967fa9a (patch)
tree876e20e7f7563bd8edb5319fde1a3d2413f35ddf /epan/dissectors/packet-dvb-tot.c
parentba0b025dd38feb196c70e7576cc43f8e0128c478 (diff)
use proto_mpeg_descriptor_loop_dissect() for the TOT
svn path=/trunk/; revision=48703
Diffstat (limited to 'epan/dissectors/packet-dvb-tot.c')
-rw-r--r--epan/dissectors/packet-dvb-tot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dvb-tot.c b/epan/dissectors/packet-dvb-tot.c
index 4214309b77..4f786122b4 100644
--- a/epan/dissectors/packet-dvb-tot.c
+++ b/epan/dissectors/packet-dvb-tot.c
@@ -52,7 +52,7 @@ dissect_dvb_tot(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
guint offset = 0;
- guint descriptor_len, descriptor_end;
+ guint descriptor_len;
proto_item *ti;
proto_tree *dvb_tot_tree;
@@ -80,9 +80,7 @@ dissect_dvb_tot(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(dvb_tot_tree, hf_dvb_tot_descriptors_loop_length, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
- descriptor_end = offset + descriptor_len;
- while (offset < descriptor_end)
- offset += proto_mpeg_descriptor_dissect(tvb, offset, dvb_tot_tree);
+ offset += proto_mpeg_descriptor_loop_dissect(tvb, offset, descriptor_len, dvb_tot_tree);
offset += packet_mpeg_sect_crc(tvb, pinfo, dvb_tot_tree, 0, offset);
proto_item_set_len(ti, offset);