aacenc: handle input size not aligned at sample boundary
am: 1f5583ef37

Change-Id: I860fbc2f7deabf7900ba245b7a356cd356fc4aaf