Fix a bug in motion search code
authorYunqing Wang <yunqingwang@google.com>
Tue, 14 Dec 2010 16:00:25 +0000 (11:00 -0500)
committerYunqing Wang <yunqingwang@google.com>
Tue, 14 Dec 2010 18:59:38 +0000 (13:59 -0500)
commit7fb0f868634d628394a41c2195ed8ae387302c84
tree34ae6d116048128a1d887dff6b59f070eac12fe3
parent41f4458a030dfd545078a10c1f5097702d6ccdd1
Fix a bug in motion search code

The MV's range is 256. Since the new motion search uses a different
starting MV than the center ref MV, a MV range checking needs to
be done to avoid corruption.

Change-Id: I8ae0721d1bd203639e13891e2e54a2e87276f306
vp8/encoder/mcomp.c
vp8/encoder/mcomp.h
vp8/encoder/onyx_if.c
vp8/encoder/rdopt.c