Clean code of swresample library.