Commit a36f19e9 authored by Paul B Mahol's avatar Paul B Mahol

libopenjpegdec: set cp_reduce value only once

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 881e0de6
......@@ -258,7 +258,6 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
}
opj_set_event_mgr((opj_common_ptr)dec, NULL, NULL);
ctx->dec_params.cp_limit_decoding = LIMIT_TO_MAIN_HEADER;
ctx->dec_params.cp_reduce = avctx->lowres;
ctx->dec_params.cp_layer = ctx->lowqual;
// Tie decoder with decoding parameters
opj_setup_decoder(dec, &ctx->dec_params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment