Add output buffer padding to handle Android 4.3.