diff --git a/lib/dash/segment_template.js b/lib/dash/segment_template.js index 40e8f16ee9..8709dda1c7 100644 --- a/lib/dash/segment_template.js +++ b/lib/dash/segment_template.js @@ -67,7 +67,7 @@ shaka.dash.SegmentTemplate = class { }, }; } else if (info.segmentDuration) { - if (!isUpdate) { + if (!isUpdate && context.adaptationSet.contentType !== 'image') { context.presentationTimeline.notifyMaxSegmentDuration( info.segmentDuration); context.presentationTimeline.notifyMinSegmentStartTime( diff --git a/test/dash/dash_parser_manifest_unit.js b/test/dash/dash_parser_manifest_unit.js index 416b7ce3d4..5a978a8bab 100644 --- a/test/dash/dash_parser_manifest_unit.js +++ b/test/dash/dash_parser_manifest_unit.js @@ -2198,6 +2198,7 @@ describe('DashParser Manifest', () => { /** @type {shaka.extern.Manifest} */ const manifest = await parser.start('dummy://foo', playerInterface); expect(manifest.imageStreams.length).toBe(1); + expect(manifest.presentationTimeline.getMaxSegmentDuration()).toBe(1); const imageStream = manifest.imageStreams[0]; expect(imageStream.width).toBe(1024); expect(imageStream.height).toBe(1152);