aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-pes.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-06 16:50:13 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-06 16:50:13 +0000
commite2996ceabe94206aae66b54caac53c7e35cb325d (patch)
treed377a635fd6375bfcf6aa79b35eb0df20984cc0c /epan/dissectors/packet-mpeg-pes.c
parent594f1efcdd976386dcdd918a11271d353af76270 (diff)
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 dissectors:
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39294
Diffstat (limited to 'epan/dissectors/packet-mpeg-pes.c')
-rw-r--r--epan/dissectors/packet-mpeg-pes.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-mpeg-pes.c b/epan/dissectors/packet-mpeg-pes.c
index a91d2cfc13..c68aa19c76 100644
--- a/epan/dissectors/packet-mpeg-pes.c
+++ b/epan/dissectors/packet-mpeg-pes.c
@@ -742,34 +742,34 @@ dissect_mpeg_pes_header_data(tvbuff_t *tvb, packet_info *pinfo,
}
if (flags & COPY_INFO_FLAG) {
proto_tree_add_item(tree, hf_mpeg_pes_copy_info, tvb,
- offset, 1, FALSE);
+ offset, 1, ENC_BIG_ENDIAN);
offset++;
}
if (flags & CRC_FLAG) {
proto_tree_add_item(tree, hf_mpeg_pes_crc, tvb,
- offset, 2, FALSE);
+ offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
if (flags & EXTENSION_FLAG) {
int flags2 = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_mpeg_pes_extension_flags, tvb,
- offset, 1, FALSE);
+ offset, 1, ENC_BIG_ENDIAN);
offset++;
if (flags2 & PRIVATE_DATA_FLAG) {
proto_tree_add_item(tree, hf_mpeg_pes_private_data, tvb,
- offset, 2, FALSE);
+ offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
if (flags2 & PACK_LENGTH_FLAG) {
proto_tree_add_item(tree, hf_mpeg_pes_pack_length, tvb,
- offset, 1, FALSE);
+ offset, 1, ENC_BIG_ENDIAN);
offset++;
}
if (flags2 & SEQUENCE_FLAG) {
proto_tree_add_item(tree, hf_mpeg_pes_sequence, tvb,
- offset, 2, FALSE);
+ offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
if (flags2 & PSTD_BUFFER_FLAG) {
@@ -780,7 +780,7 @@ dissect_mpeg_pes_header_data(tvbuff_t *tvb, packet_info *pinfo,
}
if (flags2 & EXTENSION_FLAG2) {
proto_tree_add_item(tree, hf_mpeg_pes_extension2, tvb,
- offset, 2, FALSE);
+ offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
}
@@ -813,7 +813,7 @@ dissect_mpeg_pes_pack_header(tvbuff_t *tvb, gint offset,
stuffing_length = tvb_get_guint8(tvb, offset / 8) & 0x07;
proto_tree_add_item(tree, hf_mpeg_pes_stuffing_length, tvb,
- offset / 8, 1, FALSE);
+ offset / 8, 1, ENC_BIG_ENDIAN);
offset += 1 * 8;
if (stuffing_length > 0) {