summaryrefslogtreecommitdiff
path: root/libavcodec/error_resilience.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-30 00:51:57 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-03 12:45:09 -0500
commitc442190a6bfd8036f6c32b78e1e96ff3b830f8f0 (patch)
tree6a971efa6ae7f9c2a2632340d8259a3699ae157e /libavcodec/error_resilience.c
parent240b22afe14ef477da1b439b9ed7bca6cc7d6c26 (diff)
error_resilience: initialize prev_* variables
CC: libav-stable@libav.org Bug-Id: CID 732293 / CID 732294
Diffstat (limited to 'libavcodec/error_resilience.c')
-rw-r--r--libavcodec/error_resilience.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 33b0360092..b1ca2d9919 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -423,7 +423,7 @@ static void guess_mv(ERContext *s)
int best_score = 256 * 256 * 256 * 64;
int best_pred = 0;
const int mot_index = (mb_x + mb_y * mot_stride) * mot_step;
- int prev_x, prev_y, prev_ref;
+ int prev_x = 0, prev_y = 0, prev_ref = 0;
if ((mb_x ^ mb_y ^ pass) & 1)
continue;