diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-04 21:17:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-04 21:28:48 +0100 |
commit | e1bcbca9987e65b1ed5d61bf6f3e9558d42452a7 (patch) | |
tree | 92e6b37c22cdbf499166fd0fee67037f5733b062 | |
parent | 567ea2d64c63ff7526887183c618ed272ccc3344 (diff) | |
parent | c442190a6bfd8036f6c32b78e1e96ff3b830f8f0 (diff) | |
download | ffmpeg-e1bcbca9987e65b1ed5d61bf6f3e9558d42452a7.tar.gz |
Merge commit 'c442190a6bfd8036f6c32b78e1e96ff3b830f8f0'
* commit 'c442190a6bfd8036f6c32b78e1e96ff3b830f8f0':
error_resilience: initialize prev_* variables
Note, these variables are not used without initialization prior
to the change
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/error_resilience.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 26117805e4..c72c562078 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -448,7 +448,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; |