From cfdb48ba8f46128baeb8ce249bcf9013d5fe0b3e Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Sat, 24 Sep 2011 14:05:42 +0200 Subject: [PATCH] videotestsrc: keep the calculation fixed-point https://bugzilla.gnome.org/show_bug.cgi?id=667315 --- gst/videotestsrc/videotestsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 8f7ddaf..d7c3f87 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -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++) { -- 2.7.4