diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-19 10:33:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-19 10:33:56 +0000 |
commit | aa1da263aa47262a869ff2c9ca661ad292bdf48d (patch) | |
tree | 148102f818045dcc3b5237c25ff5cf8eff4fa0ea | |
parent | 143bf7d7c30c10033c4d90ab6c4b497582f46653 (diff) | |
download | ffmpeg-aa1da263aa47262a869ff2c9ca661ad292bdf48d.tar.gz |
1 variable less in decode_cabac_residual() no speed change (but less vars means less things gcc can load and store redundantly)
Originally committed as revision 6734 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 26382cb7f6..12019adab4 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -6067,7 +6067,7 @@ static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n int index[64]; - int i, last; + int last; int coeff_count = 0; int abslevel1 = 1; @@ -6162,9 +6162,9 @@ static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n fill_rectangle(&h->non_zero_count_cache[scan8[n]], 2, 2, 8, coeff_count, 1); } - for( i = coeff_count - 1; i >= 0; i-- ) { + for( coeff_count--; coeff_count >= 0; coeff_count-- ) { uint8_t *ctx = (abslevelgt1 != 0 ? 0 : FFMIN( 4, abslevel1 )) + abs_level_m1_ctx_base; - int j= scantable[index[i]]; + int j= scantable[index[coeff_count]]; if( get_cabac( CC, ctx ) == 0 ) { if( !qmul ) { |