summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorRay Simard <rhs.ffmpeg@sylvan-glade.com>2012-01-12 18:03:36 -0800
committerStefano Sabatini <stefasab@gmail.com>2012-01-13 17:00:21 +0100
commit369befb41ea998c83e2cf872d996ed7534656398 (patch)
tree11f40143d8eff2d480c2c645d82abf8f5578c86f /libavfilter
parent7f6004fc7466c2ce975894446f4b13ca6c3779a0 (diff)
vf_deshake: remove unused variable totalangles
Variable totalangles was created and assigned, but never used. Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_deshake.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 1464147ada..b752fbf760 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -259,8 +259,6 @@ static void find_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2,
int pos;
double *angles = av_malloc(sizeof(*angles) * width * height / (16 * deshake->blocksize));
- double totalangles = 0;
-
int center_x = 0, center_y = 0;
double p_x, p_y;
@@ -299,13 +297,6 @@ static void find_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2,
center_x /= pos;
center_y /= pos;
- for (x = 0; x < pos; x++) {
- totalangles += angles[x];
- }
-
- //av_log(NULL, AV_LOG_ERROR, "Angle: %lf\n", totalangles / (pos - 1));
- t->angle = totalangles / (pos - 1);
-
t->angle = clean_mean(angles, pos);
if (t->angle < 0.001)
t->angle = 0;