mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffmpeg: drop never-set OutputStream.first_pts
This commit is contained in:
parent
5188aeaffb
commit
76678b7137
|
@ -763,7 +763,7 @@ static int check_recording_time(OutputStream *ost)
|
||||||
OutputFile *of = output_files[ost->file_index];
|
OutputFile *of = output_files[ost->file_index];
|
||||||
|
|
||||||
if (of->recording_time != INT64_MAX &&
|
if (of->recording_time != INT64_MAX &&
|
||||||
av_compare_ts(ost->sync_opts - ost->first_pts, ost->enc_ctx->time_base, of->recording_time,
|
av_compare_ts(ost->sync_opts, ost->enc_ctx->time_base, of->recording_time,
|
||||||
AV_TIME_BASE_Q) >= 0) {
|
AV_TIME_BASE_Q) >= 0) {
|
||||||
close_output_stream(ost);
|
close_output_stream(ost);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -495,9 +495,6 @@ typedef struct OutputStream {
|
||||||
/* input pts and corresponding output pts
|
/* input pts and corresponding output pts
|
||||||
for A/V sync */
|
for A/V sync */
|
||||||
int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
|
int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
|
||||||
/* pts of the first frame encoded for this stream, used for limiting
|
|
||||||
* recording time */
|
|
||||||
int64_t first_pts;
|
|
||||||
/* dts of the last packet sent to the muxing queue, in AV_TIME_BASE_Q */
|
/* dts of the last packet sent to the muxing queue, in AV_TIME_BASE_Q */
|
||||||
int64_t last_mux_dts;
|
int64_t last_mux_dts;
|
||||||
/* pts of the last frame received from the filters, in AV_TIME_BASE_Q */
|
/* pts of the last frame received from the filters, in AV_TIME_BASE_Q */
|
||||||
|
|
Loading…
Reference in New Issue