mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/pixlet: use av_clip_uintp2_c explicitly
Found-by: Clément Bœsch <u@pkh.me> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a340987e37
commit
0fe50e56e9
@ -482,8 +482,8 @@ static void postprocess_chroma(AVFrame *frame, int w, int h, int depth)
|
||||
|
||||
for (j = 0; j < h; j++) {
|
||||
for (i = 0; i < w; i++) {
|
||||
dstu[i] = av_clip_uintp2(add + srcu[i], depth) << shift;
|
||||
dstv[i] = av_clip_uintp2(add + srcv[i], depth) << shift;
|
||||
dstu[i] = av_clip_uintp2_c(add + srcu[i], depth) << shift;
|
||||
dstv[i] = av_clip_uintp2_c(add + srcv[i], depth) << shift;
|
||||
}
|
||||
dstu += strideu;
|
||||
dstv += stridev;
|
||||
|
Loading…
Reference in New Issue
Block a user