Fixed integer overflow for large input video
authorYaowu Xu <yaowu@google.com>
Fri, 24 Jan 2014 19:34:41 +0000 (11:34 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 24 Jan 2014 19:34:41 +0000 (11:34 -0800)
commite5034f65e54234d5ef6a99ddb405208c91bf812e
tree6d4f29b6c49a8e5e47400ef47341ac8b308a2b71
parent9c0fbd573fcb051bfa2bdcc81b00b7d475cfe131
Fixed integer overflow for large input video

The sum of squared mv components can go beyond int range for large
 input resolution. This commit changed the type to int64 to avoid
overflow.

Change-Id: Ib21ea2817845cea1435f893064e6417c79c5bc64
vp9/encoder/vp9_firstpass.c