[FFmpeg-soc] [soc]: r5108 - als/alsdec.c
thilo.borgmann
subversion at mplayerhq.hu
Sat Aug 15 12:29:15 CEST 2009
Author: thilo.borgmann
Date: Sat Aug 15 12:29:15 2009
New Revision: 5108
Log:
Condense ceil_log2().
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Sat Aug 15 12:23:00 2009 (r5107)
+++ als/alsdec.c Sat Aug 15 12:29:15 2009 (r5108)
@@ -131,9 +131,7 @@ static av_cold void dprint_specific_conf
/** Computes ceil(log2(x)) using av_log2.
*/
static inline int ceil_log2(int x) {
- if (x <= 0)
- return 0;
- return av_log2((x - 1) << 1);
+ return x > 0 ? av_log2((x - 1) << 1) : 0;
}
More information about the FFmpeg-soc
mailing list