From 49331f7ba3e3214738864af96d22fb1e6b5463b7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 25 Sep 2012 18:05:02 +0200 Subject: [PATCH] dnxhdenc: fix speed regression Signed-off-by: Michael Niedermayer --- libavcodec/dnxhdenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 7644a07f8f..c8b031e739 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -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;