aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-28 10:43:36 +0200
committerAnton Khirnov <anton@khirnov.net>2023-06-05 16:15:04 +0200
commit57021a68d94b3f48cda7f567d645ae9425d45101 (patch)
tree81567c7abf9e288ff1590a64db6c8c230e0fa8dc /fftools/ffmpeg_mux.h
parentba1141d8a9a50f66b7cdc62bec59a536f6ece568 (diff)
downloadffmpeg-57021a68d94b3f48cda7f567d645ae9425d45101.tar.gz
fftools/ffmpeg_mux: set stream duration after the timebase is certainly known
Stop assuming the encoder knows the muxing timebase, which does not always have to hold (e.g. due to bitstream filters).
Diffstat (limited to 'fftools/ffmpeg_mux.h')
-rw-r--r--fftools/ffmpeg_mux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h
index 7e0454dfba..bee7addd6a 100644
--- a/fftools/ffmpeg_mux.h
+++ b/fftools/ffmpeg_mux.h
@@ -69,6 +69,9 @@ typedef struct MuxStream {
* used for making up missing dts values */
int64_t last_mux_dts;
+ int64_t stream_duration;
+ AVRational stream_duration_tb;
+
// audio streamcopy - state for av_rescale_delta()
int64_t ts_rescale_delta_last;