]> granicus.if.org Git - libvpx/commitdiff
Initialize "corrupted" to zero
authorJohann <johannkoenig@google.com>
Wed, 18 Mar 2015 18:01:28 +0000 (11:01 -0700)
committerJohann <johannkoenig@google.com>
Wed, 18 Mar 2015 18:01:28 +0000 (11:01 -0700)
Because the call to vpx_codec_control at line 928 is now guarded by
!frame_parallel, 'corrupted' may not be set.

Change-Id: Id166bd8a8cdb5e5120fca1640011a3545f6e178a

vpxdec.c

index 62a5e93e554517a7eff60d93515081352970e8c3..04035501980c6769efc250c2acf6b5204e9ad190 100644 (file)
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -875,7 +875,7 @@ int main_loop(int argc, const char **argv_) {
     vpx_codec_iter_t  iter = NULL;
     vpx_image_t    *img;
     struct vpx_usec_timer timer;
-    int                   corrupted;
+    int                   corrupted = 0;
 
     frame_avail = 0;
     if (!stop_after || frame_in < stop_after) {