Fix potential integer overflow in range checking
Fix potential integer overflow in range checking

Change-Id: I20b951bb67f4c2147055751a8cd9534ceddc7215

GrokImageCompression/aom,GrokImageCompression/aom,smarter/aom,luctrudeau/aom,GrokImageCompression/aom,luctrudeau/aom,smarter/aom,smarter/aom,luctrudeau/aom,smarter/aom,GrokImageCompression/aom,smarter/aom,GrokImageCompression/aom,luctrudeau/aom,luctrudeau/aom,GrokImageCompression/aom,smarter/aom,luctrudeau/aom