Fix new MV clamping scheme for chroma MVs.
authorTimothy B. Terriberry <tterribe@xiph.org>
Thu, 10 Jun 2010 22:42:24 +0000 (18:42 -0400)
committerTimothy B. Terriberry <tterribe@xiph.org>
Thu, 10 Jun 2010 22:42:24 +0000 (18:42 -0400)
commit05c6eca4db7f2abec32c9ce0fc325d9a0b933fb7
tree9eb9ec6e8dbc1addac364bf06abcea8089f54977
parent317a66693b690eadd886d55286a24f428d7c50e5
Fix new MV clamping scheme for chroma MVs.

The new scheme introduced in I68d35a2f did not clamp chroma MVs in the SPLITMV
 case, and clamped them incorrectly (to the luma plane bounds) in every other
 case.
Because chroma MVs are computed from the luma MVs before clamping occurs, they
 could still point outside of the frame buffer and cause crashes.
This clamping happens outside of the MV prediction loop, and so should not
 affect bitstream decoding.
vp8/decoder/decodframe.c