[FFmpeg-cvslog] libopenjpegdec: set cp_reduce value only once

Paul B Mahol git at videolan.org
Sat Jul 21 18:13:57 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 21 16:12:04 2012 +0000| [a36f19e94210fa0732f7eea6f38aae7306670520] | committer: Paul B Mahol

libopenjpegdec: set cp_reduce value only once

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a36f19e94210fa0732f7eea6f38aae7306670520
---

 libavcodec/libopenjpegdec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index fe4d865..e7a7d8d 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -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);



More information about the ffmpeg-cvslog mailing list