mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user