diff options
Diffstat (limited to 'epan/dissectors/packet-mp2t.c')
-rw-r--r-- | epan/dissectors/packet-mp2t.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mp2t.c b/epan/dissectors/packet-mp2t.c index 3ea7c0b470..f1d83795a9 100644 --- a/epan/dissectors/packet-mp2t.c +++ b/epan/dissectors/packet-mp2t.c @@ -976,7 +976,7 @@ dissect_mp2t_adaptation_field(tvbuff_t *tvb, gint offset, proto_tree *tree) /* 33 bit PCR base, 6 bit reserved, 9 bit PCR ext */ pcr_base = tvb_get_ntoh48(tvb, offset) >> (48-33); - pcr_ext = (guint16)(tvb_get_ntoh48(tvb, offset) & G_GUINT64_CONSTANT(0x1FF)); + pcr_ext = (guint16)(tvb_get_ntoh48(tvb, offset) & 0x1FF); proto_tree_add_uint64(mp2t_af_tree, hf_mp2t_af_pcr, tvb, offset, 6, pcr_base*300 + pcr_ext); @@ -990,7 +990,7 @@ dissect_mp2t_adaptation_field(tvbuff_t *tvb, gint offset, proto_tree *tree) /* the same format as PCR above */ opcr_base = tvb_get_ntoh48(tvb, offset) >> (48-33); - opcr_ext = (guint16)(tvb_get_ntoh48(tvb, offset) & G_GUINT64_CONSTANT(0x1FF)); + opcr_ext = (guint16)(tvb_get_ntoh48(tvb, offset) & 0x1FF); proto_tree_add_uint64(mp2t_af_tree, hf_mp2t_af_opcr, tvb, offset, 6, opcr_base*300 + opcr_ext); |