aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h261.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2007-10-04 13:22:40 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2007-10-04 13:22:40 +0000
commitfeb0330f2d2cfe3b5e8b3301acb4fa9530a4e014 (patch)
tree35af4b4f5abdf5bfed90ed0740e47f8a6ebe88b4 /epan/dissectors/packet-h261.c
parent5382f41680caf4e255a874ce2315ed3e869e4efd (diff)
Mask out correct bits in EBIT.
svn path=/trunk/; revision=23067
Diffstat (limited to 'epan/dissectors/packet-h261.c')
-rw-r--r--epan/dissectors/packet-h261.c2
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 */