aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2009-01-24 14:28:08 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2009-01-24 14:28:08 +0000
commit3e7233688a3f62c1bf77251d47d56f49500b80c7 (patch)
tree4b7156a8e7590979b0ebc15992568e7a584ae450
parentfa79489fd31eb0eb55ee1cd0c6c2f6a9f055893f (diff)
downloadffmpeg-3e7233688a3f62c1bf77251d47d56f49500b80c7.tar.gz
avoid duplication of size_table and offset_table
Originally committed as revision 16743 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vc1.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 3e33a1b8a9..c2c2931aa0 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -3103,6 +3103,8 @@ static int vc1_decode_p_block(VC1Context *v, DCTELEM block[64], int n, int mquan
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 *v)
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 */