]> granicus.if.org Git - libvpx/commitdiff
vp9_rd_pick_inter_mode_sb: fix uninitialized value
authorJames Zern <jzern@google.com>
Fri, 9 Aug 2013 23:15:08 +0000 (16:15 -0700)
committerJames Zern <jzern@google.com>
Fri, 9 Aug 2013 23:26:22 +0000 (16:26 -0700)
'skippable' can remain unset and negatively affect later decisions

address one aspect of issue #599

Change-Id: Iffdf0ac2e49ac481c27dc27c87fa546d4167bb28

vp9/encoder/vp9_rdopt.c

index 238c9815bcf3195e70abce07f6c68fdf6bfc6305..1c77b3088527eac1c1bf9a4b419dc3fe8fb0d158 100644 (file)
@@ -3306,7 +3306,7 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
     int compmode_cost = 0;
     int rate2 = 0, rate_y = 0, rate_uv = 0;
     int64_t distortion2 = 0, distortion_y = 0, distortion_uv = 0;
-    int skippable;
+    int skippable = 0;
     int64_t tx_cache[TX_MODES];
     int i;
     int this_skip2 = 0;