Skip to content

Commit

Permalink
test: set DEFAULT_PES_HEADER_FREQ to 8 instead of 16 to minimize pes …
Browse files Browse the repository at this point in the history
…unit duration (~used to be 107 ms)
  • Loading branch information
igorshevach committed Jul 14, 2024
1 parent 3480349 commit 9de7043
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx-rtmp-kmp-module/src/ngx_rtmp_kmp_track.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ ngx_rtmp_kmp_track_sync_audio(ngx_kmp_out_track_t *track,
} else {
ctx->audio_base_dts = frame->f.dts;
ctx->audio_samples = 0;

//TODO: use only in debug builds!
ngx_log_error(NGX_LOG_INFO, &track->log, 0,
"ngx_rtmp_kmp_track_sync_audio: "
"reset audio_base_dts frame_dts %L est_dts %L margin %L",
frame->f.dts, est_dts, margin);
}

/* TODO: identify short frames (960) from extra data */
Expand Down

0 comments on commit 9de7043

Please sign in to comment.