From: Yaowu Xu Date: Tue, 28 Feb 2012 02:23:15 +0000 (-0800) Subject: fixed a wrong intialization value X-Git-Tag: v1.3.0~1217^2~380^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb87b56eab32116536cd33866592e6d23b888299;p=libvpx fixed a wrong intialization value The "update" variable was used as a flag in coef_prob update dry run that tests if a frame should encodes update at all. The wrong init value forced the update happening always. fixing this has a minor improvement in low bit rate situation when 8x8 transform is allowed. Change-Id: Icb498e8d6a62fd074dcbc2065b797cba9237cb51 --- diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c index b8020af22..65fb4e00f 100644 --- a/vp8/encoder/bitstream.c +++ b/vp8/encoder/bitstream.c @@ -2257,8 +2257,8 @@ static void update_coef_probs(VP8_COMP *cpi) /* do not do this if not evena allowed */ if(cpi->common.txfm_mode == ALLOW_8X8) { - update = 1; /* dry run to see if update is necessary */ + update = 0; i = 0; do {