Commit 7df07a6ad7 for ffmpeg
commit 7df07a6ad7fbe84754b70544ec6b5a779c712452
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date: Sat Nov 7 16:59:44 2026 -0600
fftools/ffplay: seek with the audio pre-roll
ffplay decodes everything it reads, so its seeks need the audio
pre-roll before the target.
Set AVSEEK_FLAG_PREROLL in seek_flags rather than on each seek, so that
the seeks concat makes at an inpoint get it too.
diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index a149ec555c..c7c6933a1b 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -3249,6 +3249,7 @@ static int read_thread(void *arg)
}
ic->interrupt_callback.callback = decode_interrupt_cb;
ic->interrupt_callback.opaque = is;
+ ic->seek_flags |= AVSEEK_FLAG_PREROLL;
if ((ret = av_dict_copy(&format_options, format_opts, 0)) < 0)
goto fail;
if (!av_dict_get(format_options, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE)) {