fix swscaler warning about performance