diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-27 00:26:24 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-27 00:26:24 +0400 |
commit | 109268c826aeb5fd52792c4ead8d56981868b518 (patch) | |
tree | 089b04e01f7b1b7ab971175a30ea14182b272d61 /libavcodec | |
parent | 8d231e37af0cfd7dd52bdea57d144f2c663664ae (diff) |
get_dc: fix rounding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index cbdf9781a8..23d8d81bf7 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -626,7 +626,7 @@ static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){ } *b= backup; - return av_clip(((ab<<LOG2_OBMC_MAX) + aa/2)/aa, 0, 255); //FIXME we should not need clipping + return av_clip( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa), 0, 255); //FIXME we should not need clipping } static inline int get_block_bits(SnowContext *s, int x, int y, int w){ |