mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 09:41:07 +02:00
fix flv append time shift
This commit is contained in:
parent
1474aec731
commit
8d1b1c1243
|
@ -1082,7 +1082,7 @@ ngx_rtmp_record_node_av(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
|
|||
if (!rctx->initialized) {
|
||||
|
||||
rctx->initialized = 1;
|
||||
rctx->epoch = h->timestamp + rctx->time_shift;
|
||||
rctx->epoch = h->timestamp - rctx->time_shift;
|
||||
|
||||
if (rctx->file.offset == 0 &&
|
||||
ngx_rtmp_record_write_header(&rctx->file) != NGX_OK)
|
||||
|
|
Loading…
Reference in a new issue