Commit 04d44987 authored by reimar's avatar reimar

Use av_clip_uint8 instead of equivalent but unoptimzed code,


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18985 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8e14e5d3
......@@ -81,11 +81,7 @@ static inline unsigned char fix (int pix14)
int tmp;
tmp = (pix14 + 0x80000) >> 20;
if (tmp < 0)
return 0;
if (tmp > 255)
return 255;
return tmp;
return av_clip_uint8(tmp);
}
......
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