mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
avfilter/vsrc_mptestsrc: Use av_clip_uint8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
03bffb68f6
commit
6660c598cd
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user