Unified · Split
| @@ -7383,8 +7383,6 @@ static void accumulate_frame_tpl_stats(VP9_COMP *cpi) { · 7382 unmodified lines | ||
| 7383 | 7383 | // Accumulate tpl stats for each frame in the current group of picture. |
| 7384 | 7384 | for (frame_idx = 1; frame_idx < gf_group->gf_group_size; ++frame_idx) { |
| 7385 | 7385 | TplDepFrame *tpl_frame = &cpi->tpl_stats[frame_idx]; |
| 7386 | − if (!tpl_frame->is_valid) continue; | |
| 7387 | − | |
| 7388 | 7386 | TplDepStats *tpl_stats = tpl_frame->tpl_stats_ptr; |
| 7389 | 7387 | const int tpl_stride = tpl_frame->stride; |
| 7390 | 7388 | int64_t intra_cost_base = 0; |
| @@ -7394,6 +7392,8 @@ static void accumulate_frame_tpl_stats(VP9_COMP *cpi) { · 3 unmodified lines | ||
| 7394 | 7392 | int64_t mc_flow_base = 0; |
| 7395 | 7393 | int row, col; |
| 7396 | 7394 | |
| 7395 | + if (!tpl_frame->is_valid) continue; | |
| 7396 | + | |
| 7397 | 7397 | for (row = 0; row < cm->mi_rows && tpl_frame->is_valid; ++row) { |
| 7398 | 7398 | for (col = 0; col < cm->mi_cols; ++col) { |
| 7399 | 7399 | TplDepStats *this_stats = &tpl_stats[row * tpl_stride + col]; |