mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-09 22:11:08 +02:00
added timestamp cut in recorder to prevent negative (big unsigned) timestamps
This commit is contained in:
parent
8d1b1c1243
commit
0210f7ca83
|
@ -892,6 +892,13 @@ ngx_rtmp_record_write_frame(ngx_rtmp_session_t *s,
|
|||
|
||||
timestamp = h->timestamp - rctx->epoch;
|
||||
|
||||
if ((int32_t) timestamp < 0) {
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
|
||||
"record: %V cut timestamp=%D", &rracf->id, timestamp);
|
||||
|
||||
timestamp = 0;
|
||||
}
|
||||
|
||||
/* write tag header */
|
||||
ph = hdr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue