Compare commits

...

2 Commits

Author SHA1 Message Date
mangshe0 fb23fc12c6
Merge 2e53a6424d into 5cb74797fe 2025-01-17 16:40:19 +00:00
mangshe0 2e53a6424d fix Application provided invalid, non monotonically increasing dts to muxer in stream bug 2020-08-26 17:08:51 +08:00
1 changed files with 2 additions and 0 deletions

View File

@ -2564,6 +2564,8 @@ static switch_status_t av_file_write(switch_file_handle_t *handle, void *data, s
if (!context->audio_timer) { if (!context->audio_timer) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Delta of %d detected. Video timer sync: %" SWITCH_UINT64_T_FMT "/%d %" SWITCH_UINT64_T_FMT "\n", delta, context->audio_st[0].next_pts, context->video_timer.samplecount, new_pts - context->audio_st[0].next_pts); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Delta of %d detected. Video timer sync: %" SWITCH_UINT64_T_FMT "/%d %" SWITCH_UINT64_T_FMT "\n", delta, context->audio_st[0].next_pts, context->video_timer.samplecount, new_pts - context->audio_st[0].next_pts);
} }
if (new_pts - context->audio_st[0].next_pts <0 && context->audio_st[0].next_pts != 0)
return status;
sample_start = new_pts; sample_start = new_pts;
} }