Revision 14cf9e69 libavcodec/dnxhdenc.c

View differences:

libavcodec/dnxhdenc.c
433 433
            int n = dnxhd_switch_matrix(ctx, i);
434 434

  
435 435
            memcpy(block, src_block, 64*sizeof(*block));
436
            last_index = ctx->m.dct_quantize((MpegEncContext*)ctx, block, i, qscale, &overflow);
436
            last_index = ctx->m.dct_quantize(&ctx->m, block, i, qscale, &overflow);
437 437
            ac_bits += dnxhd_calc_ac_bits(ctx, block, last_index);
438 438

  
439 439
            diff = block[0] - ctx->m.last_dc[n];
......
478 478
            DCTELEM *block = ctx->blocks[i];
479 479
            int last_index, overflow;
480 480
            int n = dnxhd_switch_matrix(ctx, i);
481
            last_index = ctx->m.dct_quantize((MpegEncContext*)ctx, block, i, qscale, &overflow);
481
            last_index = ctx->m.dct_quantize(&ctx->m, block, i, qscale, &overflow);
482 482
            //START_TIMER;
483 483
            dnxhd_encode_block(ctx, block, last_index, n);
484 484
            //STOP_TIMER("encode_block");

Also available in: Unified diff