diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2007-10-04 13:22:40 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2007-10-04 13:22:40 +0000 |
commit | feb0330f2d2cfe3b5e8b3301acb4fa9530a4e014 (patch) | |
tree | 35af4b4f5abdf5bfed90ed0740e47f8a6ebe88b4 | |
parent | 5382f41680caf4e255a874ce2315ed3e869e4efd (diff) |
Mask out correct bits in EBIT.
svn path=/trunk/; revision=23067
-rw-r--r-- | epan/dissectors/packet-h261.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-h261.c b/epan/dissectors/packet-h261.c index 75a5051cfd..0caff91467 100644 --- a/epan/dissectors/packet-h261.c +++ b/epan/dissectors/packet-h261.c @@ -82,7 +82,7 @@ dissect_h261( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) /* SBIT 1st octet, 3 bits */ proto_tree_add_uint( h261_tree, hf_h261_sbit, tvb, offset, 1, tvb_get_guint8( tvb, offset ) >> 5 ); /* EBIT 1st octet, 3 bits */ - proto_tree_add_uint( h261_tree, hf_h261_ebit, tvb, offset, 1, ( tvb_get_guint8( tvb, offset ) << 3 ) >> 5 ); + proto_tree_add_uint( h261_tree, hf_h261_ebit, tvb, offset, 1, ( tvb_get_guint8( tvb, offset ) >> 2 ) & 7 ); /* I flag, 1 bit */ proto_tree_add_boolean( h261_tree, hf_h261_ibit, tvb, offset, 1, tvb_get_guint8( tvb, offset ) & 2 ); /* V flag, 1 bit */ |