aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-10 17:37:12 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-13 12:41:05 +0200
commit3b2beceae1c3b434b38ddeb76b01afd7bb836d0f (patch)
treee5ce4cefb1f5bbde2436eeac3e5af894ef2918a6 /fftools/ffmpeg.h
parentca38fe927e3983de345ac38b5793eae4f2925512 (diff)
downloadffmpeg-3b2beceae1c3b434b38ddeb76b01afd7bb836d0f.tar.gz
fftools/ffmpeg: use a separate variable for discontinuity offset
This will allow to move normal offset handling to demuxer thread, since discontinuities currently have to be processed in the main thread, as the code uses some decoder-produced values.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 8b2e73d642..6991ba7632 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -427,6 +427,10 @@ typedef struct InputFile {
int input_sync_ref;
int64_t ts_offset;
+ /**
+ * Extra timestamp offset added by discontinuity handling.
+ */
+ int64_t ts_offset_discont;
int64_t last_ts;
int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
int64_t recording_time;