swvenc: hevc: fix the size calculation for portrait encoding

During portrait recording the height can become more than the maximum
width supported for hevc encoding. Hence modifying the check to look
for product of width and height instead of checking the dimensions.

Change-Id: Ibb5715bcb48e08e15d4d2b264465acf1d7714baf
1 file changed