add change pitch and change encode
modify warning of comparing int and unsigned