[FFmpeg-cvslog] r16743 - trunk/libavcodec/vc1.c

stefang subversion
Sat Jan 24 15:28:08 CET 2009


Author: stefang
Date: Sat Jan 24 15:28:08 2009
New Revision: 16743

Log:
avoid duplication of size_table and offset_table

Modified:
   trunk/libavcodec/vc1.c

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	Sat Jan 24 15:26:40 2009	(r16742)
+++ trunk/libavcodec/vc1.c	Sat Jan 24 15:28:08 2009	(r16743)
@@ -3103,6 +3103,8 @@ static int vc1_decode_p_block(VC1Context
     return pat;
 }
 
+static const int size_table  [6] = { 0, 2, 3, 4,  5,  8 };
+static const int offset_table[6] = { 0, 1, 3, 7, 15, 31 };
 
 /** Decode one P-frame MB (in Simple/Main profile)
  */
@@ -3116,8 +3118,6 @@ static int vc1_decode_p_mb(VC1Context *v
     int mqdiff, mquant; /* MB quantization */
     int ttmb = v->ttfrm; /* MB Transform type */
 
-    static const int size_table[6] = { 0, 2, 3, 4, 5, 8 },
-      offset_table[6] = { 0, 1, 3, 7, 15, 31 };
     int mb_has_coeffs = 1; /* last_flag */
     int dmv_x, dmv_y; /* Differential MV components */
     int index, index1; /* LUT indexes */
@@ -3411,9 +3411,6 @@ static void vc1_decode_b_mb(VC1Context *
     int cbp = 0; /* cbp decoding stuff */
     int mqdiff, mquant; /* MB quantization */
     int ttmb = v->ttfrm; /* MB Transform type */
-
-    static const int size_table[6] = { 0, 2, 3, 4, 5, 8 },
-      offset_table[6] = { 0, 1, 3, 7, 15, 31 };
     int mb_has_coeffs = 0; /* last_flag */
     int index, index1; /* LUT indexes */
     int val, sign; /* temp values */




More information about the ffmpeg-cvslog mailing list