]> granicus.if.org Git - libvpx/commit
Restore first ref frame pointer to the correct value
authorAdrian Grange <agrange@google.com>
Thu, 19 Mar 2015 21:41:43 +0000 (14:41 -0700)
committerAdrian Grange <agrange@google.com>
Thu, 19 Mar 2015 23:17:31 +0000 (16:17 -0700)
commit12d946df893a5abaf762d776603de4a3f0bd9949
tree8ba7ffa89bc63ab83f9a9cdd9450059acca1c20c
parent53c9ebe609faee5e0db5f3e15ebdaa4a04a3eb33
Restore first ref frame pointer to the correct value

The joint_motion_search function alternates prediction
between two reference frames. In order to reuse existing
code, a pointer to the appropriate reference frame is
written into xd->plane[0].pre[0], that the motion
estimation code assumes points to the reference frame.

If this first reference frame was scaled then the
pointer was incorrectly being reset to point to the
unscaled reference frame rather than the scaled
version.

Change-Id: I76f73a8d8f4f15c1f3a5e7e08a35140cdb7886ab
vp9/encoder/vp9_rdopt.c