From 9df714d4cacd8a234fb4a40e2615659d75d98a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Loeuillet?= Date: Fri, 14 Jan 2005 18:36:42 +0000 Subject: [PATCH] I'm a bad boy. using /1001. to force C to do float division and not integer division (as it did in my last commit) Original commit message from CVS: * ext/dv/gstdvdec.c: * gst/subparse/gstsubparse.c: (parse_mdvdsub): * gst/y4m/gsty4mencode.c: (gst_y4mencode_sinkconnect): I'm a bad boy. using /1001. to force C to do float division and not integer division (as it did in my last commit) Thanks to David I. Lehn for pointing this mistake. --- ChangeLog | 9 +++++++++ gst/subparse/gstsubparse.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e1b7f8cee4..008d5dcecb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-01-14 Stephane LOEUILLET + + * ext/dv/gstdvdec.c: + * gst/subparse/gstsubparse.c: (parse_mdvdsub): + * gst/y4m/gsty4mencode.c: (gst_y4mencode_sinkconnect): + I'm a bad boy. using /1001. to force C to do float division + and not integer division (as it did in my last commit) + Thanks to David I. Lehn for pointing this mistake. + 2005-01-14 Ronald S. Bultje * sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported): diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 7b5170be82..dc1b95308f 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -304,7 +304,7 @@ parse_mdvdsub (GstSubparse * self, guint64 * out_start_time, /* FIXME: hardcoded for now, but detecting the correct value is * not going to be easy, I suspect... */ - const double frames_per_sec = 24000 / 1001; + const double frames_per_sec = 24000 / 1001.; GString *markup; gchar *rv;