Fix a check condition in nonrd_pick_partition
authorJingning Han <jingning@google.com>
Thu, 19 Feb 2015 17:54:08 +0000 (09:54 -0800)
committerJingning Han <jingning@google.com>
Thu, 19 Feb 2015 17:54:55 +0000 (09:54 -0800)
Change-Id: Ic92fb4b16948f745c218351b24fdafecf9abce3a

vp9/encoder/vp9_encodeframe.c

index 99bb930..33f4578 100644 (file)
@@ -3129,7 +3129,7 @@ static void nonrd_pick_partition(VP9_COMP *cpi, ThreadData *td,
                  bsize, pc_tree);
   }
 
-  if (bsize == BLOCK_64X64) {
+  if (bsize == BLOCK_64X64 && do_recon) {
     assert(tp_orig < *tp);
     assert(best_rdc.rate < INT_MAX);
     assert(best_rdc.dist < INT64_MAX);