From 3e04114f3d6d1bc746a376f375dc18c5a941e5aa Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Mon, 18 Jul 2016 06:54:50 -0700 Subject: prepend ++ instead of post in for loops. Applied the following regex : search for: (for.*\(.*;.*;) ([a-zA-Z_]*)\+\+\) replace with: \1 ++\2) This misses some for loops: ie : for (mb_col = 0; mb_col < oci->mb_cols; mb_col++, mi++) Change-Id: Icf5f6fb93cced0992e0bb71d2241780f7fb1f0a8 --- vp8/common/alloccommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vp8/common/alloccommon.c') diff --git a/vp8/common/alloccommon.c b/vp8/common/alloccommon.c index 8a3742bb3..9d4c48a51 100644 --- a/vp8/common/alloccommon.c +++ b/vp8/common/alloccommon.c @@ -19,7 +19,7 @@ void vp8_de_alloc_frame_buffers(VP8_COMMON *oci) { int i; - for (i = 0; i < NUM_YV12_BUFFERS; i++) + for (i = 0; i < NUM_YV12_BUFFERS; ++i) vp8_yv12_de_alloc_frame_buffer(&oci->yv12_fb[i]); vp8_yv12_de_alloc_frame_buffer(&oci->temp_scale_frame); @@ -56,7 +56,7 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) { if ((height & 0xf) != 0) height += 16 - (height & 0xf); - for (i = 0; i < NUM_YV12_BUFFERS; i++) { + for (i = 0; i < NUM_YV12_BUFFERS; ++i) { oci->fb_idx_ref_cnt[i] = 0; oci->yv12_fb[i].flags = 0; if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, -- cgit v1.2.3