Skip to content

Commit

Permalink
fix flv append time shift
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Jan 31, 2014
1 parent 1474aec commit 8d1b1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngx_rtmp_record_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d1b1c1

Please sign in to comment.