]> granicus.if.org Git - libvpx/commit
tx_skip: Avoid undefined shift behavior.
authorAlex Converse <aconverse@google.com>
Thu, 30 Apr 2015 19:52:36 +0000 (12:52 -0700)
committerAlex Converse <aconverse@google.com>
Thu, 30 Apr 2015 19:56:27 +0000 (12:56 -0700)
commit9b638cded6b0f1998b0c9e0f539465ee945e1011
tree0c376d694b70296ef135e086f7d1dd622f0dcab8
parentaaa50de4ca7d11d4cfb5482b03c4cd13265b2705
tx_skip: Avoid undefined shift behavior.

vp9_quantize_rect did illegal shifts but didn't use the results.
The shift |a << b| is unfortunately undefined if |a < 0|, but the
more verbose |a * (1 << b)| generates the same machine code.

Change-Id: I7ceac66fa20a700630cf8ed008949146b161dab4
vp9/encoder/vp9_dct.c
vp9/encoder/vp9_quantize.c