>From 95288c8b17be82d122b5c3f2d2b52ba03b4bfed0 Mon Sep 17 00:00:00 2001
From: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Date: Thu, 12 Jan 2012 18:03:36 -0800
Subject: [PATCH 2/2] Unused variable totalangles removed

Variable totalangles is created and assigned, but never used.

Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
---
 libavfilter/vf_deshake.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 1464147..b752fbf 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;
-- 
1.7.5.1


