diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2019-12-14 23:02:44 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-12-15 06:59:43 +0000 |
commit | 2f42fda6004d14bef324399a6ae0d3b672b8c99f (patch) | |
tree | 34854ebd18730968a22c9ee9fe578f7e6e590083 /epan/dissectors/packet-h265.c | |
parent | 595153ca99d82392a9dd0bb62b15d54ee245c6bb (diff) |
H265: properly index 2D array (CID 1450950)
In the expression it seems to simply have been missed this is a 2D array.
Adding the 2nd index, as elsewhere in this function.
Change-Id: I21ce5a6fa70408f84cb61bbd09e7d3aeff9c1d85
Reviewed-on: https://code.wireshark.org/review/35441
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-h265.c')
-rw-r--r-- | epan/dissectors/packet-h265.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-h265.c b/epan/dissectors/packet-h265.c index 6d4ac36577..b3d669e0a1 100644 --- a/epan/dissectors/packet-h265.c +++ b/epan/dissectors/packet-h265.c @@ -1826,12 +1826,12 @@ dissect_h265_profile_tier_level(proto_tree* tree, tvbuff_t* tvb, packet_info* pi } if ((sub_layer_profile_idc[i] >= 1 && sub_layer_profile_idc[i] <= 5) || sub_layer_profile_idc[i] == 9 || - sub_layer_profile_compatibility_flag[1] || - sub_layer_profile_compatibility_flag[2] || - sub_layer_profile_compatibility_flag[3] || - sub_layer_profile_compatibility_flag[4] || - sub_layer_profile_compatibility_flag[5] || - sub_layer_profile_compatibility_flag[9]) { + sub_layer_profile_compatibility_flag[i][1] || + sub_layer_profile_compatibility_flag[i][2] || + sub_layer_profile_compatibility_flag[i][3] || + sub_layer_profile_compatibility_flag[i][4] || + sub_layer_profile_compatibility_flag[i][5] || + sub_layer_profile_compatibility_flag[i][9]) { /* The number of bits in this syntax structure is not affected by this condition */ proto_tree_add_bits_item(tree, hf_h265_sub_layer_inbld_flag, tvb, bit_offset, 1, ENC_BIG_ENDIAN); bit_offset++; |