Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-14 00:01:45 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-12-14 00:08:43 +0400
commit16b771b1f47daa9fec84477040984d83a92ba4a6 (patch)
treee48b9580b9e342f26005a3e96bf430d39cb4d289 /libavfilter/transform.c
parentb39e01a6e887745192da8c105ffac1f297b00da9 (diff)
cleanup: for(int
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/transform.c')
-rw-r--r--libavfilter/transform.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavfilter/transform.c b/libavfilter/transform.c
index 800f784446..8afc5fea6a 100644
--- a/libavfilter/transform.c
+++ b/libavfilter/transform.c
@@ -116,19 +116,22 @@ void avfilter_get_matrix(float x_shift, float y_shift, float angle, float zoom,
void avfilter_add_matrix(const float *m1, const float *m2, float *result)
{
- for (int i = 0; i < 9; i++)
+ int i;
+ for (i = 0; i < 9; i++)
result[i] = m1[i] + m2[i];
}
void avfilter_sub_matrix(const float *m1, const float *m2, float *result)
{
- for (int i = 0; i < 9; i++)
+ int i;
+ for (i = 0; i < 9; i++)
result[i] = m1[i] - m2[i];
}
void avfilter_mul_matrix(const float *m1, float scalar, float *result)
{
- for (int i = 0; i < 9; i++)
+ int i;
+ for (i = 0; i < 9; i++)
result[i] = m1[i] * scalar;
}