Fix an overflow issue in SSE2 forward ADST
authorJingning Han <jingning@google.com>
Wed, 13 Nov 2013 22:48:38 +0000 (14:48 -0800)
committerJingning Han <jingning@google.com>
Wed, 13 Nov 2013 23:15:59 +0000 (15:15 -0800)
commitfabc7836956c8c48adf6c570957c7fddb7ec0253
tree445f33c39b3c2b4cb1f207e2e066856490734de6
parentb3c75a2d6c04213e729c8e4cc45ec7f45aa1c38f
Fix an overflow issue in SSE2 forward ADST

The step that sums three input samples could potentially cause the
intermediate result go beyond 16 bit limit, when operating as the
second 1-D transform. This commit fixes the issue.

Change-Id: Iaf512449ac2d25ddd8a806d760afab362c62a516
vp9/encoder/x86/vp9_dct_sse2.c