summaryrefslogtreecommitdiff
path: root/vp8/encoder/bitstream.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2012-02-27 18:23:15 -0800
committerYaowu Xu <yaowu@google.com>2012-02-28 09:10:34 -0800
commiteb87b56eab32116536cd33866592e6d23b888299 (patch)
treef891f0d22204c4757a6d8bf1f2424851f3ca8279 /vp8/encoder/bitstream.c
parent3cdd0a8e75111393bc1d03da6c0c2ca01c959b92 (diff)
downloadlibvpx-eb87b56eab32116536cd33866592e6d23b888299.tar
libvpx-eb87b56eab32116536cd33866592e6d23b888299.tar.gz
libvpx-eb87b56eab32116536cd33866592e6d23b888299.tar.bz2
libvpx-eb87b56eab32116536cd33866592e6d23b888299.zip
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
Diffstat (limited to 'vp8/encoder/bitstream.c')
-rw-r--r--vp8/encoder/bitstream.c2
1 files changed, 1 insertions, 1 deletions
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
{