Skip to content

Commit 6298aa7

Browse files
committed
fixed hls offset update
1 parent e5d2df6 commit 6298aa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls/ngx_rtmp_hls_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ ngx_rtmp_hls_set_frag(ngx_rtmp_session_t *s, uint64_t ts)
769769
}
770770

771771
if (frag != ctx->frag + 1) {
772-
ctx->offset = (ctx->frag + 1) * (uint64_t) hacf->fraglen * 90 - ts;
772+
ctx->offset += (ctx->frag + 1) * (uint64_t) hacf->fraglen * 90 - ts;
773773
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
774774
"hls: time gap offset=%uL", ctx->offset);
775775
}

0 commit comments

Comments
 (0)