Commit 2f3ef91383 for ffmpeg
commit 2f3ef913837b3940ae42708141f7efc256c120ee
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Fri Dec 4 03:23:20 2026 +0100
avformat/dashdec: do not fall back to the generic seek
When dash_read_seek() fails, av_seek_frame() tries the generic seek. The
streams have no index, so it only reads packets until the timestamp is
passed or the presentation ends, and then fails as well. Set
AVFMT_NOGENSEARCH like the HLS demuxer does.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 722dd272c9..0a909726e1 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2798,7 +2798,7 @@ const FFInputFormat ff_dash_demuxer = {
.p.name = "dash",
.p.long_name = NULL_IF_CONFIG_SMALL("Dynamic Adaptive Streaming over HTTP"),
.p.priv_class = &dash_class,
- .p.flags = AVFMT_NO_BYTE_SEEK,
+ .p.flags = AVFMT_NO_BYTE_SEEK | AVFMT_NOGENSEARCH,
.priv_data_size = sizeof(DASHContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
.read_probe = dash_probe,