aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h261.c
diff options
context:
space:
mode:
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 */