shithub: libvpx

Download patch

ref: 1b5d612b5dcc865be1b1e174877baaee3c0c42b2
parent: 9c93307c10a843f288ae8e463112d6fc998f5d4e
parent: 6ec0ef6691d38236de1a2f937351cac1db380640
author: Jingning Han <jingning@google.com>
date: Fri Dec 19 06:03:00 EST 2014

Merge "Add a guard on intra mode skip control for RTC mode"

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -837,8 +837,9 @@
 
   // Perform intra prediction search, if the best SAD is above a certain
   // threshold.
-  if (!x->skip && best_rdc.rdcost > inter_mode_thresh &&
-      bsize <= cpi->sf.max_intra_bsize) {
+  if (best_rdc.rdcost == INT64_MAX ||
+      (!x->skip && best_rdc.rdcost > inter_mode_thresh &&
+       bsize <= cpi->sf.max_intra_bsize)) {
     struct estimate_block_intra_args args = { cpi, x, DC_PRED, 0, 0 };
     const TX_SIZE intra_tx_size =
         MIN(max_txsize_lookup[bsize],