fftools/ffmpeg: move OutputStream.last_filter_pts to OutputFilter

This value is associated with the filtergraph output rather than the
output stream, so this is a more appropriate place for it.
This commit is contained in:
Anton Khirnov
2023-03-27 08:12:14 +02:00
parent 83da6d3f54
commit fd91ac11ed
4 changed files with 22 additions and 13 deletions

View File

@@ -314,6 +314,9 @@ typedef struct OutputFilter {
const int *formats;
const AVChannelLayout *ch_layouts;
const int *sample_rates;
/* pts of the last frame received from this filter, in AV_TIME_BASE_Q */
int64_t last_pts;
} OutputFilter;
typedef struct FilterGraph {
@@ -573,8 +576,6 @@ typedef struct OutputStream {
AVStream *st; /* stream in the output file */
/* dts of the last packet sent to the muxing queue, in AV_TIME_BASE_Q */
int64_t last_mux_dts;
/* pts of the last frame received from the filters, in AV_TIME_BASE_Q */
int64_t last_filter_pts;
// timestamp from which the streamcopied streams should start,
// in AV_TIME_BASE_Q;