From 8d1b1c1243e05aa15afd1a42368b9d1752639bca Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 31 Jan 2014 10:39:08 +0400 Subject: [PATCH] fix flv append time shift --- ngx_rtmp_record_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_rtmp_record_module.c b/ngx_rtmp_record_module.c index 5a93e96..a817c6e 100644 --- a/ngx_rtmp_record_module.c +++ b/ngx_rtmp_record_module.c @@ -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)