| @@ -433,7 +433,7 @@ static int dnxhd_calc_bits_thread(AVCodecContext *avctx, void *arg, int jobnr, i · 432 unmodified lines |
| 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,7 +478,7 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void *arg, int jobnr, int · 38 unmodified lines |
| 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"); |