shithub: libvpx

Download patch

ref: 4b5f01e12e8efb890b78e779b4736155d16dd38c
parent: d86d834fcb153281c6c470700011385c1849927a
parent: ed100c0b007684d1432f16cce3b171e3a76691c0
author: Jingning Han <jingning@google.com>
date: Thu Oct 16 08:35:11 EDT 2014

Merge "Fix an ioc issue in super_block_uvrd"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -1140,12 +1140,14 @@
   *sse = 0;
   *skippable = 1;
 
-  for (plane = 1; plane < MAX_MB_PLANE && is_cost_valid; ++plane) {
+  for (plane = 1; plane < MAX_MB_PLANE; ++plane) {
     txfm_rd_in_plane(x, &pnrate, &pndist, &pnskip, &pnsse,
                      ref_best_rd, plane, bsize, uv_tx_size,
                      cpi->sf.use_fast_coef_costing);
-    if (pnrate == INT_MAX)
+    if (pnrate == INT_MAX) {
       is_cost_valid = 0;
+      break;
+    }
     *rate += pnrate;
     *distortion += pndist;
     *sse += pnsse;