History

Fix the warning of C90 mixed declarations and code

Angie Chiang committed 6 years ago

Commit d4453c71 parent 3f7fee21 file · +2 −2Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t