dnxhdenc: fix speed regression
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Sep 2012 16:05:02 +0000 (18:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Sep 2012 16:10:11 +0000 (18:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dnxhdenc.c

index 7644a07..c8b031e 100644 (file)
@@ -281,6 +281,8 @@ static int dnxhd_encode_init(AVCodecContext *avctx)
     avctx->bits_per_raw_sample = ctx->cid_table->bit_depth;
 
     ff_dct_common_init(&ctx->m);
+    ff_dct_encode_init(&ctx->m);
+
     if (!ctx->m.dct_quantize)
         ctx->m.dct_quantize = ff_dct_quantize_c;