shithub: libvpx

Download patch

ref: 81d1171fd4614c3b60439b97007a3ec7ea5e3d0c
parent: c6ba3a3d8509779168e144ba273c14be5c063bc2
author: Adrian Grange <agrange@google.com>
date: Fri Jan 4 04:00:47 EST 2013

Fix mode selection infinite loop bug

Mode selection for SBs could enter an infinite loop because
the interpolation filter mode index was not being reset
correctly.

Change-Id: I4bbe726f29ef5b6836e94884067c46084713cc11

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -4605,6 +4605,7 @@
     // Test best rd so far against threshold for trying this mode.
     if (best_rd <= cpi->rd_threshes[mode_index] ||
         cpi->rd_threshes[mode_index] == INT_MAX) {
+      switchable_filter_index = 0;
       continue;
     }
 
--