summaryrefslogtreecommitdiff
path: root/libavfilter/vf_ciescope.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-03 21:19:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-03 21:20:08 +0100
commit966eadeab3173f5c756aaae337f340c70545f4c6 (patch)
tree43af5d3ef7764c5d767b7a53ede001bcd6b931c0 /libavfilter/vf_ciescope.c
parentfbfd2601f6604fbdfcbd4906dad13ca099905b06 (diff)
avfilter/vf_ciescope: Fix 'ISO C90 forbids mixed declarations and code'
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_ciescope.c')
-rw-r--r--libavfilter/vf_ciescope.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c
index c9456a3b63..450c17b126 100644
--- a/libavfilter/vf_ciescope.c
+++ b/libavfilter/vf_ciescope.c
@@ -772,6 +772,7 @@ static void invert_matrix3x3(double in[3][3], double out[3][3])
m10 = in[1][0], m11 = in[1][1], m12 = in[1][2],
m20 = in[2][0], m21 = in[2][1], m22 = in[2][2];
int i, j;
+ double det;
out[0][0] = (m11 * m22 - m21 * m12);
out[0][1] = -(m01 * m22 - m21 * m02);
@@ -783,7 +784,7 @@ static void invert_matrix3x3(double in[3][3], double out[3][3])
out[2][1] = -(m00 * m21 - m20 * m01);
out[2][2] = (m00 * m11 - m10 * m01);
- double det = m00 * out[0][0] + m10 * out[0][1] + m20 * out[0][2];
+ det = m00 * out[0][0] + m10 * out[0][1] + m20 * out[0][2];
det = 1.0 / det;
for (i = 0; i < 3; i++) {