The mandate for the width and height to be even is only for the YV12 format. Add this check only for the YV12 format. Change-Id: I1e8d2de174ecf2e62cd33cc40dfd8e97d70a3a59