avfilter/vsrc_mptestsrc: Use av_clip_uint8()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-02-21 14:50:23 +01:00
parent 03bffb68f6
commit 6660c598cd

View File

@ -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));
}
}
}