aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-13 21:01:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-13 21:47:01 +0100
commit834aef341d77d60edef92fe4270f7b1e223bc0a4 (patch)
tree6950a1377d135ee6620c4ccaa34b5789f50bf58d /libavfilter
parent657737e58d65a1f1c10f1059231592a0a9ad652e (diff)
downloadffmpeg-834aef341d77d60edef92fe4270f7b1e223bc0a4.tar.gz
cleanup: for(int
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 16b771b1f47daa9fec84477040984d83a92ba4a6) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-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;
}