shithub: libvpx

Download patch

ref: 7105df53d7dc13d5e575bc8df714ec8d1da36b06
parent: e8032a5fae496902322ecac373ef8be5477fca0c
parent: a1ec3eb3263dfc265961cc6d5c13dd7be788798e
author: Yaowu Xu <yaowu@google.com>
date: Tue Aug 25 13:07:34 EDT 2015

Merge "Limit new motion vector size"

--- a/vp8/encoder/pickinter.c
+++ b/vp8/encoder/pickinter.c
@@ -1240,7 +1240,10 @@
             }
 
             mode_mv[NEWMV].as_int = d->bmi.mv.as_int;
-
+            // The clamp below is not necessary from the perspective
+            // of VP8 bitstream, but is added to improve ChromeCast
+            // mirroring's robustness. Please do not remove.
+            vp8_clamp_mv2(&mode_mv[this_mode], xd);
             /* mv cost; */
             rate2 += vp8_mv_bit_cost(&mode_mv[NEWMV], &best_ref_mv,
                                      cpi->mb.mvcost, 128);
@@ -1248,7 +1251,6 @@
 
         case NEARESTMV:
         case NEARMV:
-
             if (mode_mv[this_mode].as_int == 0)
                 continue;