Commit d301a134 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowenc: Use av_clip_uint8()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent daebe631
......@@ -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){
......
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