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).
This commit is contained in:
Anton Khirnov
2023-05-28 10:43:36 +02:00
parent ba1141d8a9
commit 57021a68d9
4 changed files with 14 additions and 8 deletions

View File

@@ -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;