Commit 98491b7343 for ffmpeg
commit 98491b73438de902e89ab930db9c94ae9197a2c5
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Fri Dec 4 18:41:29 2026 +0100
avformat/dashdec: set the default timescale
@timescale is 1 when it is absent (ISO/IEC 23009-1, 5.3.9.2).
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 0a909726e1..1681fa2487 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -957,6 +957,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url,
}
rep->parent = s;
rep->first_seq_no = 1;
+ rep->fragment_timescale = 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");