From 6e4460a2457e134aa154505ac39b93b3846ffe0d Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Tue, 25 Aug 2015 18:12:25 -0700 Subject: [PATCH] Fix par_num / par_den not initialized problem in previous CL Change-Id: I843d4e5ed60b05f9f68c298e11af1bdf3361ddf0 --- packager/mpd/base/mpd_builder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/mpd/base/mpd_builder.cc b/packager/mpd/base/mpd_builder.cc index 22b42beb27..7dc292aaff 100644 --- a/packager/mpd/base/mpd_builder.cc +++ b/packager/mpd/base/mpd_builder.cc @@ -237,8 +237,8 @@ std::string GetPictureAspectRatio(uint32_t width, // https://en.wikipedia.org/wiki/List_of_common_resolutions const uint32_t kLargestPossibleParY = 19; - uint32_t par_num; - uint32_t par_den; + uint32_t par_num = 0; + uint32_t par_den = 0; double min_error = 1.0; for (uint32_t den = 1; den <= kLargestPossibleParY; ++den) { uint32_t num = par * den + 0.5;