From: Yaowu Xu Date: Wed, 4 Feb 2015 02:03:51 +0000 (-0800) Subject: Remove unnecessary initialization X-Git-Tag: v1.4.0~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c905c42ad82aacaefca2579455c489965550ad87;p=libvpx Remove unnecessary initialization loop_filter_level is always reset in loop_filter_frame() later in encoder. Change-Id: I608e03d905a6b23e7d5025ca747e4784c665007e --- diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 776e1fec6..d17b051ec 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -3700,10 +3700,8 @@ static void encode_frame_internal(VP9_COMP *cpi) { #endif // CONFIG_VP9_HIGHBITDEPTH x->itxm_add = xd->lossless ? vp9_iwht4x4_add : vp9_idct4x4_add; - if (xd->lossless) { + if (xd->lossless) x->optimize = 0; - cm->lf.filter_level = 0; - } cm->tx_mode = select_tx_mode(cpi, xd);