From 8689ee0eefb6b257671f186b949aec8d81cbe759 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 22 Jun 2013 21:34:11 +0200 Subject: [PATCH] sonic: simplify shift_down() Signed-off-by: Michael Niedermayer --- libavcodec/sonic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index cb7309c2b4..aacbcd31f6 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -90,7 +90,7 @@ static inline int shift(int a,int b) static inline int shift_down(int a,int b) { - return (a>>b)+((a<0)?1:0); + return (a>>b)+(a<0); } #if 1