Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r--libavcodec/lcldec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 8b31b5fa00..f880eb8b11 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -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);
}