summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-26 21:26:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-26 21:26:24 +0100
commit109268c826aeb5fd52792c4ead8d56981868b518 (patch)
tree089b04e01f7b1b7ab971175a30ea14182b272d61 /libavcodec/snowenc.c
parent8d231e37af0cfd7dd52bdea57d144f2c663664ae (diff)
get_dc: fix rounding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c2
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){