add crop output for encoder
Merge pull request #1308 from dongzha/ModifyEncOutput

add crop output for encoder