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.
This commit is contained in:
Stéphane Loeuillet 2005-01-14 18:36:42 +00:00
parent 74a701993e
commit 9df714d4ca
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2005-01-14 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
* 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 <rbultje@ronald.bitfreak.net>
* sys/v4l/gstv4lelement.c: (gst_v4l_iface_supported):

View file

@ -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;