]> granicus.if.org Git - libvpx/commit
Fix bug in 1st pass motion compensation
authorAdrian Grange <agrange@google.com>
Thu, 1 Jul 2010 13:17:04 +0000 (14:17 +0100)
committerAdrian Grange <agrange@google.com>
Thu, 1 Jul 2010 13:19:43 +0000 (14:19 +0100)
commit0618ff14d6eeca27d6cca6b3999e4cd10fe7b096
treecf0bedd53143e9702ca000c53f7fbf3110b3dbf5
parent2e3d8d3263fb5b7ef27ca7b9bb3bf192f029370c
Fix bug in 1st pass motion compensation

In the case where the best reference mv is not (0,0) a secondary
search is carried out centered on (0,0). However, rather than
sending tmp_err into the search function, motion_error was
inadvertently passed.

As a result tmp_err remains set at INT_MAX and the (0,0)-based
search result will never be selected, even if it is better.

Change-Id: I3c82b246c8c82ba887b9d3fb4c9e0a0f2fe5a76c
vp8/encoder/firstpass.c