Overflow of frame error accumulators.
authorPaul Wilkins <paulwilkins@google.com>
Thu, 24 Feb 2011 15:49:41 +0000 (15:49 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Thu, 24 Feb 2011 15:49:41 +0000 (15:49 +0000)
commitb862c108ddf071a541979a6dbd210fcbc9db1df1
treeaeaa50d8e97e9c6a6148abcd5bd074dc03f85c90
parentaee120afb98872a49486d28b8315a1feaa9fffe2
Overflow of frame error accumulators.

This fixes an overflow problem in the frame error accumulators.

The overflow condition is extreme but did trigger when Frank B.
coded some high motion interlaced HD content.

The observed effect was a catastrophic  breakdown of the rate
control leading to massive undershoot and poor bit allocation.

All the error values should really be unsigned but I will look at this
separately.

Change-Id: I9745f5c5ca2783620426b66b568b2088b579151f
vp8/encoder/firstpass.c