diff --git a/content/media/MediaSegment.h b/content/media/MediaSegment.h index e04d54d55e3..f3b5ed7b9d2 100644 --- a/content/media/MediaSegment.h +++ b/content/media/MediaSegment.h @@ -40,6 +40,11 @@ inline double MediaTimeToSeconds(MediaTime aTime) return aTime*(1.0/(1 << MEDIA_TIME_FRAC_BITS)); } +inline int64_t MediaTimeToMicroseconds(MediaTime aTime) +{ + return aTime*(1000000.0/(1 << MEDIA_TIME_FRAC_BITS)); +} + /** * A number of ticks at a rate determined by some underlying track (e.g. * audio sample rate). We want to make sure that multiplying TrackTicks by