[FFmpeg-cvslog] error_resilience: initialize prev_* variables

Vittorio Giovara git at videolan.org
Tue Nov 4 21:37:56 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Oct 30 00:51:57 2014 +0000| [c442190a6bfd8036f6c32b78e1e96ff3b830f8f0] | committer: Vittorio Giovara

error_resilience: initialize prev_* variables

CC: libav-stable at libav.org
Bug-Id: CID 732293 / CID 732294

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c442190a6bfd8036f6c32b78e1e96ff3b830f8f0
---

 libavcodec/error_resilience.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 33b0360..b1ca2d9 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;



More information about the ffmpeg-cvslog mailing list