Use wide integer to avoid overflow BUG=webm:1270 Change-Id: I7d56667d946196bbbe355303de805422e40b0763