*
* Routines for ITU-T Recommendation H.261 dissection
*
- * $Id: packet-h261.c,v 1.12 2002/01/24 09:20:48 guy Exp $
+ * $Id: packet-h261.c,v 1.13 2002/01/29 17:18:06 gram Exp $
*
* Copyright 2000, Philips Electronics N.V.
* Andreas Sikkema <andreas.sikkema@philips.com>
/* 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_item( 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 ) << 3 ) >> 5 );
/* 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 */
offset++;
/* QUANT 3rd octet, 5 bits (starting at bit 2!) */
- proto_tree_add_uint( h261_tree, hf_h261_mbap, tvb, offset, 1, tvb_get_guint8( tvb, offset ) & 124 );
- /* HMDV 3rd octet 2 bits, 4th octet 3 bits */
- proto_tree_add_uint( h261_tree, hf_h261_mbap, tvb, offset, 1,
+ proto_tree_add_uint( h261_tree, hf_h261_quant, tvb, offset, 1, tvb_get_guint8( tvb, offset ) & 124 );
+ /* HMVD 3rd octet 2 bits, 4th octet 3 bits */
+ proto_tree_add_uint( h261_tree, hf_h261_hmvd, tvb, offset, 1,
( ( tvb_get_guint8( tvb, offset ) << 4) >> 4 )
+ ( tvb_get_guint8( tvb, offset ) >> 5 ) );
offset++;
/* VMVD 4th octet, last 5 bits */
- proto_tree_add_uint( h261_tree, hf_h261_mbap, tvb, offset, 1, tvb_get_guint8( tvb, offset ) & 31 );
+ proto_tree_add_uint( h261_tree, hf_h261_vmvd, tvb, offset, 1, tvb_get_guint8( tvb, offset ) & 31 );
offset++;
/* The rest of the packet is the H.261 stream */