mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-02 06:39:32 +02:00
fixed hls offset update
This commit is contained in:
parent
e5d2df6fc0
commit
6298aa7e1d
|
@ -769,7 +769,7 @@ ngx_rtmp_hls_set_frag(ngx_rtmp_session_t *s, uint64_t ts)
|
|||
}
|
||||
|
||||
if (frag != ctx->frag + 1) {
|
||||
ctx->offset = (ctx->frag + 1) * (uint64_t) hacf->fraglen * 90 - ts;
|
||||
ctx->offset += (ctx->frag + 1) * (uint64_t) hacf->fraglen * 90 - ts;
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
|
||||
"hls: time gap offset=%uL", ctx->offset);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue