Fix par_num / par_den not initialized problem in previous CL
Change-Id: I843d4e5ed60b05f9f68c298e11af1bdf3361ddf0
This commit is contained in:
parent
d71a37656a
commit
6e4460a245
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue