comparison h264.c @ 7182:ea851fc7ea27 libavcodec

Simplify loop condition for readability.
author astrange
date Wed, 02 Jul 2008 22:15:05 +0000
parents 069ef3bf1cef
children db32d2544050
comparison
equal deleted inserted replaced
7181:069ef3bf1cef 7182:ea851fc7ea27
5512 assert( cat == 5 ); 5512 assert( cat == 5 );
5513 fill_rectangle(&h->non_zero_count_cache[scan8[n]], 2, 2, 8, coeff_count, 1); 5513 fill_rectangle(&h->non_zero_count_cache[scan8[n]], 2, 2, 8, coeff_count, 1);
5514 } 5514 }
5515 } 5515 }
5516 5516
5517 for( coeff_count--; coeff_count >= 0; coeff_count-- ) { 5517 while( coeff_count-- ) {
5518 uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base; 5518 uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base;
5519 5519
5520 int j= scantable[index[coeff_count]]; 5520 int j= scantable[index[coeff_count]];
5521 5521
5522 if( get_cabac( CC, ctx ) == 0 ) { 5522 if( get_cabac( CC, ctx ) == 0 ) {