Fix issue when checking supported sizes

isSupportedSize will return false if the given size is not aligned
properly, so we should do that before checking.

Fixes: 179342552
Test: manual; recording works as expected
Change-Id: I5d5307ed74f214f0f6f924bb128a4c231676cdf7
(cherry picked from commit 52372bab27f4c69c7d29af4feb70a1dc69885679)
1 file changed