]> granicus.if.org Git - libvpx/commitdiff
fixed a bug where sse is not populated
authorYaowu Xu <yaowu@google.com>
Sat, 29 Jun 2013 00:10:22 +0000 (17:10 -0700)
committerYaowu Xu <yaowu@google.com>
Sat, 29 Jun 2013 00:10:22 +0000 (17:10 -0700)
Change-Id: I692d800af1f976c84a76f8bd66864c4b39540abc

vp9/encoder/vp9_rdopt.c

index 46d9bce2e2cfa138fe4e6a1af35d70331a57f977..c2810f9f9426cbfac4b0b6f720280416115c6355 100644 (file)
@@ -633,6 +633,8 @@ static void super_block_yrd(VP9_COMP *cpi,
     vpx_memset(txfm_cache, 0, NB_TXFM_MODES * sizeof(int64_t));
     super_block_yrd_for_txfm(cm, x, rate, distortion, skip, &sse[0], bs,
                              mbmi->txfm_size);
+    if (psse)
+      *psse = sse[0];
     return;
   }
   if (bs >= BLOCK_SIZE_SB32X32)