OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daebe63
)
avcodec/snowenc: Use av_clip_uint8()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 Feb 2015 14:44:34 +0000
(15:44 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 Feb 2015 14:44:34 +0000
(15:44 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snowenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/snowenc.c
b/libavcodec/snowenc.c
index
cd8fef3
..
3603785
100644
(file)
--- a/
libavcodec/snowenc.c
+++ b/
libavcodec/snowenc.c
@@
-547,7
+547,7
@@
static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){
}
*b= backup;
- return av_clip
( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa), 0, 255
); //FIXME we should not need clipping
+ return av_clip
_uint8( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa)
); //FIXME we should not need clipping
}
static inline int get_block_bits(SnowContext *s, int x, int y, int w){