We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1bdd59 commit 11c0d91Copy full SHA for 11c0d91
lib/upipe-filters/zoneplate/videotestsrc.c
@@ -169,7 +169,7 @@ gst_video_test_src_zoneplate_8bit (uint8_t *data,
169
/*second order */
170
/*normalise x/y terms to rate of change of phase at the picture edge */
171
/*phase = phase + ((v->kx2 * x * x)/w) + ((v->ky2 * y * y)/h) + ((v->kt2 * t * t)>>1); */
172
- phase = phase + ((KX2 * x * x * scale_kx2) >> 16) + ky2 + (kt2 >> 1);
+ phase = phase + (((unsigned)KX2 * x * x * scale_kx2) >> 16) + ky2 + (kt2 >> 1);
173
174
data[j*stride + i] = sine_table[phase & 0xff];
175
}
0 commit comments