Fix incorrect use of uv eobs in intra modes
authorYunqing Wang <yunqingwang@google.com>
Fri, 17 Feb 2012 14:15:08 +0000 (09:15 -0500)
committerYunqing Wang <yunqingwang@google.com>
Fri, 17 Feb 2012 14:15:08 +0000 (09:15 -0500)
commit04b9e0d7875ae45abd1456c3249f31b83e616fa5
tree764df447d08386ccf359e4b4985bf97808d836f4
parent7989bb7fe74aa1a3e477b2228e32424376c2c5e9
Fix incorrect use of uv eobs in intra modes

In vp8_rd_pick_inter_mode(), if total of eobs is zero, rate needs
to be adjusted since there are no non-zero coefficients for
transmission. The uv intra eobs calculated in
rd_pick_intra_mbuv_mode() need to be saved before they are
overwritten by inter-mode eobs.

Change-Id: I41dd04fba912e8122ef95793d4d98a251bc60e58
vp8/encoder/rdopt.c