Fix mode selection infinite loop bug
authorAdrian Grange <agrange@google.com>
Fri, 4 Jan 2013 17:00:47 +0000 (09:00 -0800)
committerAdrian Grange <agrange@google.com>
Fri, 4 Jan 2013 17:00:47 +0000 (09:00 -0800)
Mode selection for SBs could enter an infinite loop because
the interpolation filter mode index was not being reset
correctly.

Change-Id: I4bbe726f29ef5b6836e94884067c46084713cc11

vp9/encoder/vp9_rdopt.c

index 282bf0c..774b577 100644 (file)
@@ -4605,6 +4605,7 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
     // 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;
     }