Fix alignment and copy size for legacy QCOM OMX (from https://github.com/grigorig/)

Change-Id: I5fa6e57fe213a534a0def6d8c21c2f1475982e65