Skip to content

Commit 8d1b1c1

Browse files
committed
fix flv append time shift
1 parent 1474aec commit 8d1b1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_rtmp_record_module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ ngx_rtmp_record_node_av(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
10821082
if (!rctx->initialized) {
10831083

10841084
rctx->initialized = 1;
1085-
rctx->epoch = h->timestamp + rctx->time_shift;
1085+
rctx->epoch = h->timestamp - rctx->time_shift;
10861086

10871087
if (rctx->file.offset == 0 &&
10881088
ngx_rtmp_record_write_header(&rctx->file) != NGX_OK)

0 commit comments

Comments
 (0)