MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / check_recording_time

Function check_recording_time

ffmpeg-single-cmd/src/main/cpp/ffmpeg_mod.c:880–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878}
879
880static int check_recording_time(OutputStream *ost)
881{
882 OutputFile *of = output_files[ost->file_index];
883
884 if (of->recording_time != INT64_MAX &&
885 av_compare_ts(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, of->recording_time,
886 AV_TIME_BASE_Q) >= 0) {
887 close_output_stream(ost);
888 return 0;
889 }
890 return 1;
891}
892
893static void do_audio_out(OutputFile *of, OutputStream *ost,
894 AVFrame *frame)

Callers 3

do_audio_outFunction · 0.85
do_subtitle_outFunction · 0.85
do_video_outFunction · 0.85

Calls 1

close_output_streamFunction · 0.85

Tested by

no test coverage detected