mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
Fix dnxhd custom options, add AVClass in private context
This commit is contained in:
parent
efdad9fbc7
commit
d9699ea825
@ -433,7 +433,7 @@ static int dnxhd_calc_bits_thread(AVCodecContext *avctx, void *arg, int jobnr, i
|
||||
int n = dnxhd_switch_matrix(ctx, i);
|
||||
|
||||
memcpy(block, src_block, 64*sizeof(*block));
|
||||
last_index = ctx->m.dct_quantize((MpegEncContext*)ctx, block, i, qscale, &overflow);
|
||||
last_index = ctx->m.dct_quantize(&ctx->m, block, i, qscale, &overflow);
|
||||
ac_bits += dnxhd_calc_ac_bits(ctx, block, last_index);
|
||||
|
||||
diff = block[0] - ctx->m.last_dc[n];
|
||||
@ -478,7 +478,7 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void *arg, int jobnr, int
|
||||
DCTELEM *block = ctx->blocks[i];
|
||||
int last_index, overflow;
|
||||
int n = dnxhd_switch_matrix(ctx, i);
|
||||
last_index = ctx->m.dct_quantize((MpegEncContext*)ctx, block, i, qscale, &overflow);
|
||||
last_index = ctx->m.dct_quantize(&ctx->m, block, i, qscale, &overflow);
|
||||
//START_TIMER;
|
||||
dnxhd_encode_block(ctx, block, last_index, n);
|
||||
//STOP_TIMER("encode_block");
|
||||
|
@ -39,6 +39,7 @@ typedef struct {
|
||||
} RCEntry;
|
||||
|
||||
typedef struct DNXHDEncContext {
|
||||
AVClass *class;
|
||||
MpegEncContext m; ///< Used for quantization dsp functions
|
||||
|
||||
AVFrame frame;
|
||||
|
Loading…
x
Reference in New Issue
Block a user