videotestsrc: keep the calculation fixed-point

https://bugzilla.gnome.org/show_bug.cgi?id=667315
This commit is contained in:
Havard Graff 2011-09-24 14:05:42 +02:00 committed by Tim-Philipp Müller
parent 580b6b2b69
commit cfdb48ba8f

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