mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed timestamp formula
This commit is contained in:
@ -265,7 +265,7 @@ ngx_rtmp_get_timestamp()
|
|||||||
tod = ngx_timeofday();
|
tod = ngx_timeofday();
|
||||||
|
|
||||||
/* FIXME: divisor */
|
/* FIXME: divisor */
|
||||||
return (uint32_t)(tod->sec * 1000 + tod->msec / 1000) % 0x00ffffff;
|
return (uint32_t)(tod->sec * 1000 + tod->msec) % 0x00ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user