Commit ef5429a6f8 for ffmpeg
commit ef5429a6f8b955f43b72daa80e476e8457c78fe2
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Wed Oct 28 00:04:04 2026 +0100
avformat/dashdec: number segments from 1 without a startNumber
The number of the first segment is @startNumber, or 1 when the attribute
is absent (ISO/IEC 23009-1, 5.3.9.5).
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index d57d9575cf..54a8bb4bb3 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -959,6 +959,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
}
}
rep->parent = s;
+ rep->first_seq_no = 1;
representation_segmenttemplate_node = find_child_node_by_name(representation_node, "SegmentTemplate");
representation_baseurl_node = find_child_node_by_name(representation_node, "BaseURL");
representation_segmentlist_node = find_child_node_by_name(representation_node, "SegmentList");