diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-28 10:43:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-06-05 16:15:04 +0200 |
commit | 57021a68d94b3f48cda7f567d645ae9425d45101 (patch) | |
tree | 81567c7abf9e288ff1590a64db6c8c230e0fa8dc /fftools/ffmpeg_mux.h | |
parent | ba1141d8a9a50f66b7cdc62bec59a536f6ece568 (diff) | |
download | ffmpeg-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.h | 3 |
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; |