shithub: libvpx

Download patch

ref: a0944ba19fb4969fc6b3a55c7189a482a9cd3e4f
parent: aba995832f2069a16180c02f4d97caa9894f9328
parent: 03a0ced87a54c38253bdba98b3337505e5df84fa
author: Angie Chiang <[email protected]>
date: Tue Mar 5 13:51:42 EST 2019

Merge "Fix compile error when DUMP_TPL_STATS is 1"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -6726,9 +6726,10 @@
 #define DUMP_TPL_STATS 0
 #if DUMP_TPL_STATS
 static void dump_buf(uint8_t *buf, int stride, int row, int col, int h, int w) {
+  int i, j;
   printf("%d %d\n", h, w);
-  for (int i = 0; i < h; ++i) {
-    for (int j = 0; j < w; ++j) {
+  for (i = 0; i < h; ++i) {
+    for (j = 0; j < w; ++j) {
       printf("%d ", buf[(row + i) * stride + col + j]);
     }
   }
@@ -6761,8 +6762,6 @@
     for (mi_row = 0; mi_row < cm->mi_rows; ++mi_row) {
       for (mi_col = 0; mi_col < cm->mi_cols; ++mi_col) {
         if ((mi_row % mi_height) == 0 && (mi_col % mi_width) == 0) {
-          const TplDepStats *tpl_ptr =
-              &tpl_frame->tpl_stats_ptr[mi_row * tpl_frame->stride + mi_col];
           int_mv mv = *get_pyramid_mv(tpl_frame, idx, bsize, mi_row, mi_col);
           printf("%d %d %d %d\n", mi_row, mi_col, mv.as_mv.row, mv.as_mv.col);
         }