swr: Fix type to match parameters of std::max()