aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mp4ves.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-11-21 15:54:59 +0100
committerAnders Broman <a.broman58@gmail.com>2014-11-21 15:05:33 +0000
commitf2fc562edaa71316b0da541a8c95e29953cdd944 (patch)
tree371fe8ac3eec3cf591682105ac74f54fe5eaac18 /epan/dissectors/packet-mp4ves.c
parent96fb34706b972c55706f0be35172b0a248263e3c (diff)
Replace tvb_length()
Change-Id: I0b5ad4d588f0b658abaf3892d08d6520ecd2f645 Reviewed-on: https://code.wireshark.org/review/5431 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mp4ves.c')
-rw-r--r--epan/dissectors/packet-mp4ves.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mp4ves.c b/epan/dissectors/packet-mp4ves.c
index d65c2bd941..72caaf2c5a 100644
--- a/epan/dissectors/packet-mp4ves.c
+++ b/epan/dissectors/packet-mp4ves.c
@@ -599,7 +599,7 @@ dissect_mp4ves_VisualObject(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
bit_offset+=24;
proto_tree_add_bits_item(tree, hf_mp4ves_start_code, tvb, bit_offset, 8, ENC_BIG_ENDIAN);
bit_offset+= 8;
- if(tvb_length_remaining(tvb,(bit_offset>>3))<=0){
+ if(tvb_reported_length_remaining(tvb,(bit_offset>>3))<=0){
proto_tree_add_expert(tree, pinfo, &ei_mp4ves_config_too_short, tvb, 0, -1);
return -1;
}
@@ -746,7 +746,7 @@ dissect_mp4ves(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
- if (tvb_length(tvb)< 4){
+ if (tvb_reported_length(tvb)< 4){
/* To short to be a start code */
proto_tree_add_item(mp4ves_tree, hf_mp4ves_data, tvb, bit_offset>>3, -1, ENC_NA);
return;
@@ -846,7 +846,7 @@ dissect_mp4ves_par_decoderConfigurationInformation(tvbuff_t *tvb, packet_info *p
dissect_mp4ves_config(tvb, pinfo, tree);
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
typedef struct _mp4ves_capability_t {
@@ -897,7 +897,7 @@ dissect_mp4ves_name(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *tree, voi
}
}
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
void