projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f62e2c
)
Use av_clip_uint8 instead of equivalent but unoptimzed code,
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 29 May 2009 20:15:38 +0000
(20:15 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 29 May 2009 20:15:38 +0000
(20:15 +0000)
Originally committed as revision 18985 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lcldec.c
patch
|
blob
|
history
diff --git
a/libavcodec/lcldec.c
b/libavcodec/lcldec.c
index
8b31b5f
..
f880eb8
100644
(file)
--- 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);
}