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

Change-Id: I0307319a74bc6c9decacd4712e40fb93955f6ad1