From 636b535e4ae741bcf5010fead6357c7138468404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 21 Feb 2009 16:05:48 +0100 Subject: mxfdemux: Add helper function to convert MXFraction to gdouble and use it --- gst/mxf/mxfparse.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gst/mxf/mxfparse.c') diff --git a/gst/mxf/mxfparse.c b/gst/mxf/mxfparse.c index 2611e817..d4d52312 100644 --- a/gst/mxf/mxfparse.c +++ b/gst/mxf/mxfparse.c @@ -417,6 +417,12 @@ mxf_fraction_parse (MXFFraction * fraction, const guint8 * data, guint size) return TRUE; } +gdouble +mxf_fraction_to_double (const MXFFraction * fraction) +{ + return ((gdouble) fraction->n) / ((gdouble) fraction->d); +} + gchar * mxf_utf16_to_utf8 (const guint8 * data, guint size) { -- cgit v1.2.1