hevcenc: Handle errors in posix_memalign am: 5639f9918a

Change-Id: I7908a271558e204f42361b9ff378013923a7a373