]> git.sesse.net Git - ffmpeg/commitdiff
libopenjpegdec: set cp_reduce value only once
authorPaul B Mahol <onemda@gmail.com>
Sat, 21 Jul 2012 16:12:04 +0000 (16:12 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 21 Jul 2012 16:12:04 +0000 (16:12 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/libopenjpegdec.c

index fe4d86570e190cdfae73c5b9ddbe1e85cd32a7ec..e7a7d8d8d484eacd092157156b99154d4aa4196c 100644 (file)
@@ -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);