| 878 | } |
| 879 | |
| 880 | static 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 | |
| 893 | static void do_audio_out(OutputFile *of, OutputStream *ost, |
| 894 | AVFrame *frame) |
no test coverage detected