aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-pes.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-22 04:31:32 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-22 04:31:32 +0000
commit8f378c5af3af3613a8576e63c4162aaad0fcfe34 (patch)
tree6f69c55d7400a7683668752e10bb49ed982f3b42 /epan/dissectors/packet-mpeg-pes.c
parent5f64ba561178455e76b176aca6e05d36341e745e (diff)
Oops, have to regenerate this after changing its template.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22582 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mpeg-pes.c')
-rw-r--r--epan/dissectors/packet-mpeg-pes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mpeg-pes.c b/epan/dissectors/packet-mpeg-pes.c
index 415b9103d3..33e2f99fef 100644
--- a/epan/dissectors/packet-mpeg-pes.c
+++ b/epan/dissectors/packet-mpeg-pes.c
@@ -592,11 +592,11 @@ static guint64 decode_clock_reference(tvbuff_t *tvb, unsigned offset,
(bytes >> 43 & 0x0007) << 30 |
(bytes >> 27 & 0x7fff) << 15 |
(bytes >> 11 & 0x7fff) << 0;
- unsigned ext = bytes >> 1 & 0x1ff;
+ unsigned ext = (unsigned)((bytes >> 1) & 0x1ff);
guint64 cr = 300 * ts + ext;
- unsigned rem = cr % SCRHZ;
+ unsigned rem = (unsigned)(cr % SCRHZ);
nst->secs = cr / SCRHZ;
- nst->nsecs = 1000000000LL * rem / SCRHZ;
+ nst->nsecs = (int)(G_GINT64_CONSTANT(1000000000) * rem / SCRHZ);
return cr;
}