aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-10 10:44:30 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-13 12:41:05 +0200
commit274c8d58820b1bdf6ac6a51ae7f1a040da2bf96f (patch)
tree60d4703fa4a15e79ddfd7fed0bff7e8d9971a67f /fftools/ffmpeg.h
parent86e9cef77ba8a1481a6b83fd73638f24b645bdb4 (diff)
downloadffmpeg-274c8d58820b1bdf6ac6a51ae7f1a040da2bf96f.tar.gz
fftools/ffmpeg: pre-compute the streamcopy start pts before transcoding starts
InputFile.ts_offset can change during transcoding, due to discontinuity correction. This should not affect the streamcopy starting timestamp. Cf. bf2590aed3e64d44a5e2430fdbe89f91f5e55bfe
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 2ac7cbe522..8b2e73d642 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -484,6 +484,12 @@ typedef struct OutputStream {
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;
+ // everything before it should be discarded
+ int64_t ts_copy_start;
+
// the timebase of the packets sent to the muxer
AVRational mux_timebase;
AVRational enc_timebase;