Move the calls to fill in the unrestricted motion vector border of the  reference frames to always occur AFTER loop filtering.
Move the calls to fill in the unrestricted motion vector border of the
 reference frames to always occur AFTER loop filtering.

Before, for the "previous" reference frame, the calls would occur before
 filtering, but for the "golden" reference frame, the call would occur after
 filtering.
Thus, even when the "previous" and "golden" reference frames referred to the
 same frame (i.e., for the frame after a key frame), the contents of the two
 reference frame buffers would be different.

Although this changes the output produced by the decoder, it is not an
 incompatible bitstream change.
The VP3 (and current reference Theora) encoder currently does not even apply
 the loop filter, so the contents of the prediction loop already mismatch
 between the encoder and decoder.
This will not make that mismatch any worse.
Being consistent about when the filter is applied makes much more sense, and
 allows the decoder to use the same buffer when the reference frames really do
 refer to the same frame, thus avoiding a buffer copy and reducing cache
 footprint.


git-svn-id: 8dbf393e6e9ab8d4979d29f9a341a98016792aa6@7026 0101bb08-14d6-0310-b084-bc0e0c8e3800

KTXSoftware/theora,KTXSoftware/theora,KTXSoftware/theora,KTXSoftware/theora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,KTXSoftware/theora