[0.11] gst-plugins-base: videotestsrc: keep the calculation fixed-point

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 04:15:38 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: cfdb48ba8f46128baeb8ce249bcf9013d5fe0b3e
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=cfdb48ba8f46128baeb8ce249bcf9013d5fe0b3e

Author: Havard Graff <havard.graff at tandberg.com>
Date:   Sat Sep 24 14:05:42 2011 +0200

videotestsrc: keep the calculation fixed-point

https://bugzilla.gnome.org/show_bug.cgi?id=667315

---

 gst/videotestsrc/videotestsrc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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++) {



More information about the gstreamer-commits mailing list