Factor common condition in intra pred into const variable
Factor common condition in intra pred into const variable

This resolves a static analyis error.

Change-Id: I39360ae17af7e41f00e5c5edce5163bd98b920fa

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom