[FFmpeg-cvslog] sonic: simplify shift_down()

Michael Niedermayer git at videolan.org
Sat Jun 22 21:49:38 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 22 21:34:11 2013 +0200| [8689ee0eefb6b257671f186b949aec8d81cbe759] | committer: Michael Niedermayer

sonic: simplify shift_down()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8689ee0eefb6b257671f186b949aec8d81cbe759
---

 libavcodec/sonic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index cb7309c..aacbcd3 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



More information about the ffmpeg-cvslog mailing list