]> granicus.if.org Git - libvpx/commitdiff
Fix uninitialized warning in resize_test.cc
authorAngie Chiang <angiebird@google.com>
Sat, 14 Nov 2020 02:17:48 +0000 (18:17 -0800)
committerAngie Chiang <angiebird@google.com>
Sat, 14 Nov 2020 02:17:48 +0000 (18:17 -0800)
Change-Id: I12a72d3aa57b13dbcbeb037e1deea41529ea4194

test/resize_test.cc

index 65b94fa4f6fa661b777b7cca4b825af94436c762..c57170ff9b78b772cb1ae4bbd88b3d8ee1bf0b97 100644 (file)
@@ -271,8 +271,8 @@ class ResizingVideoSource : public ::libvpx_test::DummyVideoSource {
  protected:
   virtual void Next() {
     ++frame_;
-    unsigned int width;
-    unsigned int height;
+    unsigned int width = 0;
+    unsigned int height = 0;
     ScaleForFrameNumber(frame_, kInitialWidth, kInitialHeight, &width, &height,
                         flag_codec_, smaller_width_larger_size_);
     SetSize(width, height);