[FFmpeg-devel] [PATCH] ffmpeg: fix implementation of updated input start time

Jan Ekström jeebjp at gmail.com
Fri Oct 14 16:19:50 EEST 2022


On Tue, Sep 27, 2022 at 7:41 AM Gyan Doshi <ffmpeg at gyani.pro> wrote:
>
> The current adjustment of input start times just adjusts the tsoffset.
> And it does so, by resetting the tsoffset to nullify the new start time.
> This leads to breakage of -copyts, ignoring of user_ts_offset, breaking
> of -isync as well as breaking wrap correction.
>
> Fixed by taking cognizance of these parameters, and by correcting start
> times just before sync offsets are applied.

Out of interest and sorry for not testing this myself: does this
improve the current state of affairs with itsoffset with discontinuous
inputs like MPEG-TS?

Until now the offset was put together with a whole bunch of other
things, which led to logic which was supposed to only start the input
at PTS=0 to also take out the configured itsoffset at the same time
(since both the user defined offset as well as the format start time
offset were both chunked into the same thing).

Cheers,
Jan


More information about the ffmpeg-devel mailing list