[FFmpeg-cvslog] r11701 - trunk/libavutil/common.h

michael subversion
Fri Feb 1 02:33:49 CET 2008


Author: michael
Date: Fri Feb  1 02:33:49 2008
New Revision: 11701

Log:
Merge declaration and initialization.


Modified:
   trunk/libavutil/common.h

Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	(original)
+++ trunk/libavutil/common.h	Fri Feb  1 02:33:49 2008
@@ -96,9 +96,7 @@ extern const uint8_t ff_log2_tab[256];
 
 static inline int av_log2(unsigned int v)
 {
-    int n;
-
-    n = 0;
+    int n = 0;
     if (v & 0xffff0000) {
         v >>= 16;
         n += 16;
@@ -114,9 +112,7 @@ static inline int av_log2(unsigned int v
 
 static inline int av_log2_16bit(unsigned int v)
 {
-    int n;
-
-    n = 0;
+    int n = 0;
     if (v & 0xff00) {
         v >>= 8;
         n += 8;




More information about the ffmpeg-cvslog mailing list