shithub: dav1d

Download patch

ref: ffd052bdf513f3284f0a07403caed24035612b3f
parent: a40d3b5f0f7b0bf947bd570114924b9055d581f8
author: Xu Guangxin <oddstone@gmail.com>
date: Sun Nov 1 07:12:54 EST 2020

Fix variable name

The first index to task_idx_to_sby_and_tile_idx is task_idx not tile_idx

--- a/src/decode.c
+++ b/src/decode.c
@@ -2678,7 +2678,7 @@
                    sizeof(*f->tile_thread.titsati_index_rows) *
                        (f->frame_hdr->tiling.rows + 1)))
         {
-            for (int tile_row = 0, tile_idx = 0;
+            for (int tile_row = 0, task_idx = 0;
                  tile_row < f->frame_hdr->tiling.rows; tile_row++)
             {
                 for (int sby = f->frame_hdr->tiling.row_start_sb[tile_row];
@@ -2685,10 +2685,10 @@
                      sby < f->frame_hdr->tiling.row_start_sb[tile_row + 1]; sby++)
                 {
                     for (int tile_col = 0; tile_col < f->frame_hdr->tiling.cols;
-                         tile_col++, tile_idx++)
+                         tile_col++, task_idx++)
                     {
-                        f->tile_thread.task_idx_to_sby_and_tile_idx[tile_idx][0] = sby;
-                        f->tile_thread.task_idx_to_sby_and_tile_idx[tile_idx][1] =
+                        f->tile_thread.task_idx_to_sby_and_tile_idx[task_idx][0] = sby;
+                        f->tile_thread.task_idx_to_sby_and_tile_idx[task_idx][1] =
                             tile_row * f->frame_hdr->tiling.cols + tile_col;
                     }
                 }