[BITSTREAM]Fix the scaling calculation
authorYaowu Xu <yaowu@google.com>
Thu, 27 Mar 2014 19:54:06 +0000 (12:54 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 28 Mar 2014 23:40:29 +0000 (16:40 -0700)
commit4f857bacd22ea4e95c0bd8a0de3da3dcd017eff3
tree71789f1e8585b2eb6c1d9c655f05211f8a900b87
parent6fc20a8434352793f4ecb09e6369112c92952456
[BITSTREAM]Fix the scaling calculation

For very large size video image, the scaling calculation may need use
value beyond the range of int. This commit upgrade the value to 64bit
to make sure the calculation do not wrap around INT_MAX.

The change corrected the decoder behavior.

The bug affects only very large resolution video because the scaling
calculation was sufficient for image size smaller than 2^13.

This resolves issue:
https://code.google.com/p/webm/issues/detail?id=750

Change-Id: I2d2ed303ca6482f31f819f3c07d6d3e98ef3adc5
test/test-data.sha1
test/test.mk
test/test_vectors.cc
vp9/common/vp9_scale.c