[FFmpeg-devel] [PATCH 0/1] avformat/concatdec: fix seek with dts

Nicolas Gaullier nicolas.gaullier at cji.paris
Fri Jan 26 19:14:19 EET 2024


I have a bunch of patches about probing and making better concatdec, this is the first one.
Unfortunately, this is mostly about heuristics and find_stream_info things no one like very much.

This first patch seems very straightforward: there is already an heuristic in fftools for seeking,
and the same one is required when opening a file indirectly through concatdec.
(I can share a sample to reproduce the issue, but this is very commonplace).

fate results is updated for one test that uses lavf.ts (two "inpoint" directives in the script, thus two modified blocks).
Note: more packets are read but they are usually trimmed through segment_time_metadata etc.

Nicolas Gaullier (1):
  avformat/concatdec: fix seek with dts

 libavformat/concatdec.c                       | 17 +++++++-
 tests/ref/fate/concat-demuxer-simple2-lavf-ts | 40 ++++++++++++++++++-
 2 files changed, 54 insertions(+), 3 deletions(-)

-- 
2.30.2



More information about the ffmpeg-devel mailing list