Mercurial > libavcodec.hg
changeset 8645:ead59531f24a libavcodec
avoid duplication of size_table and offset_table
author | stefang |
---|---|
date | Sat, 24 Jan 2009 14:28:08 +0000 |
parents | 0b13b33e175e |
children | 8b52ac19a91c |
files | vc1.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/vc1.c Sat Jan 24 14:26:40 2009 +0000 +++ b/vc1.c Sat Jan 24 14:28:08 2009 +0000 @@ -3103,6 +3103,8 @@ 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 @@ 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 @@ 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 */