aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-hdmi.c')
-rw-r--r--epan/dissectors/packet-hdmi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-hdmi.c b/epan/dissectors/packet-hdmi.c
index 7decab1823..f9bdd94c0a 100644
--- a/epan/dissectors/packet-hdmi.c
+++ b/epan/dissectors/packet-hdmi.c
@@ -213,11 +213,9 @@ dissect_hdmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
offset++;
if (HDCP_ADDR8(addr)) {
- gint hdcp_len;
tvbuff_t *hdcp_tvb;
- hdcp_len = tvb_reported_length_remaining(tvb, offset);
- hdcp_tvb = tvb_new_subset(tvb, offset, hdcp_len, hdcp_len);
+ hdcp_tvb = tvb_new_subset_remaining(tvb, offset);
return call_dissector(hdcp_handle, hdcp_tvb, pinfo, hdmi_tree);
}