rtmp.c 中RTMP_GetTime()函数要改成如下:
#pragma comment(lib, "winmm.lib ")
uint32_t
RTMP_GetTime()
{
// #ifdef _DEBUG
// return 0;
// #elif defined(_WIN32)
// return timeGetTime();
#ifdef _WIN32
return timeGetTime();
#else
struct tms t;
if (!clk_tck) clk_tck = sysconf(_SC_CLK_TCK);
return times(&t) * 1000 / clk_tck;
#endif
}