Mercurial > libavcodec.hg
changeset 4041:0113ceb0f953 libavcodec
1 variable less in decode_cabac_residual() no speed change (but less vars means less things gcc can load and store redundantly)
author | michael |
---|---|
date | Thu, 19 Oct 2006 10:33:56 +0000 |
parents | 9eaea06c5ba6 |
children | 643cdc58bd69 |
files | h264.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Thu Oct 19 01:19:03 2006 +0000 +++ b/h264.c Thu Oct 19 10:33:56 2006 +0000 @@ -6067,7 +6067,7 @@ int index[64]; - int i, last; + int last; int coeff_count = 0; int abslevel1 = 1; @@ -6162,9 +6162,9 @@ 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 ) {