videotestsrc: keep the calculation fixed-point
authorHavard Graff <havard.graff@tandberg.com>
Sat, 24 Sep 2011 12:05:42 +0000 (14:05 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 5 Jan 2012 11:00:47 +0000 (11:00 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=667315

gst/videotestsrc/videotestsrc.c

index 8f7ddaf..d7c3f87 100644 (file)
@@ -740,7 +740,7 @@ gst_video_test_src_smpte (GstVideoTestSrc * v, unsigned char *dest, int w,
   fourcc->paint_setup (p, dest);
 
   y1 = 2 * h / 3;
-  y2 = h * 0.75;
+  y2 = 3 * h / 4;
 
   /* color bars */
   for (j = 0; j < y1; j++) {