Commit 6660c598 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vsrc_mptestsrc: Use av_clip_uint8()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 03bffb68
......@@ -121,7 +121,7 @@ static void idct(uint8_t *dst, int dst_linesize, int src[64])
for (k = 0; k < 8; k++)
sum += c[k*8+i]*tmp[8*k+j];
dst[dst_linesize*i + j] = av_clip((int)floor(sum+0.5), 0, 255);
dst[dst_linesize*i + j] = av_clip_uint8((int)floor(sum+0.5));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment