changeset 443:864980df1385 libavutil

Merge declaration and initialization.
author michael
date Fri, 01 Feb 2008 01:33:49 +0000
parents 12f0072323ce
children f771a4fd3534
files common.h
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Fri Feb 01 01:33:16 2008 +0000
+++ b/common.h	Fri Feb 01 01:33:49 2008 +0000
@@ -96,9 +96,7 @@
 
 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_16bit(unsigned int v)
 {
-    int n;
-
-    n = 0;
+    int n = 0;
     if (v & 0xff00) {
         v >>= 8;
         n += 8;