# HG changeset patch # User reimar # Date 1243628138 0 # Node ID 1c3b57fbb512badc306f3f2966bad3dc0ae356cb # Parent 8c680e33eeaa744b55d3a027ec26ee931046d7f3 Use av_clip_uint8 instead of equivalent but unoptimzed code, diff -r 8c680e33eeaa -r 1c3b57fbb512 lcldec.c --- a/lcldec.c Thu May 28 23:19:32 2009 +0000 +++ b/lcldec.c Fri May 29 20:15:38 2009 +0000 @@ -81,11 +81,7 @@ int tmp; tmp = (pix14 + 0x80000) >> 20; - if (tmp < 0) - return 0; - if (tmp > 255) - return 255; - return tmp; + return av_clip_uint8(tmp); }