diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-21 16:05:48 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-21 16:16:32 +0100 |
commit | 636b535e4ae741bcf5010fead6357c7138468404 (patch) | |
tree | 0b7a0a58d27a5aefc6d9313522bb8d3b602de771 /gst/mxf/mxfparse.c | |
parent | 8172830d47a91ba81bb61d004cf6c388efcbd198 (diff) | |
download | gst-plugins-bad-636b535e4ae741bcf5010fead6357c7138468404.tar.gz gst-plugins-bad-636b535e4ae741bcf5010fead6357c7138468404.tar.bz2 gst-plugins-bad-636b535e4ae741bcf5010fead6357c7138468404.zip |
mxfdemux: Add helper function to convert MXFraction to gdouble and use it
Diffstat (limited to 'gst/mxf/mxfparse.c')
-rw-r--r-- | gst/mxf/mxfparse.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |