Revision aa6a89aa libavcodec/h264.c

View differences:

libavcodec/h264.c
5356 5356
        }
5357 5357
    }
5358 5358

  
5359
    while( coeff_count-- ) {
5359
    do {
5360 5360
        uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base;
5361 5361

  
5362
        int j= scantable[index[coeff_count]];
5362
        int j= scantable[index[--coeff_count]];
5363 5363

  
5364 5364
        if( get_cabac( CC, ctx ) == 0 ) {
5365 5365
            node_ctx = coeff_abs_level_transition[0][node_ctx];
......
5396 5396
                block[j] = (get_cabac_bypass_sign( CC, -coeff_abs ) * qmul[j] + 32) >> 6;
5397 5397
            }
5398 5398
        }
5399
    }
5399
    } while( coeff_count );
5400 5400
#ifdef CABAC_ON_STACK
5401 5401
            h->cabac.range     = cc.range     ;
5402 5402
            h->cabac.low       = cc.low       ;

Also available in: Unified diff