From: Havard Graff Date: Sat, 24 Sep 2011 12:05:42 +0000 (+0200) Subject: videotestsrc: keep the calculation fixed-point X-Git-Tag: 1.19.3~511^2~6555^2~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfdb48ba8f46128baeb8ce249bcf9013d5fe0b3e;p=platform%2Fupstream%2Fgstreamer.git videotestsrc: keep the calculation fixed-point https://bugzilla.gnome.org/show_bug.cgi?id=667315 --- 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++) {