aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DynamicHlsController.cs
diff options
context:
space:
mode:
authorChristopher Young <c.t.ythegamer@gmail.com>2025-11-08 07:31:02 -0700
committerChristopher Young <c.t.ythegamer@gmail.com>2025-11-08 07:31:02 -0700
commit4cb038574515590611af081b5fe341ff4cb840b2 (patch)
tree847f90cd0fd7db9b7845d0afafdabedd3ecf3b74 /Jellyfin.Api/Controllers/DynamicHlsController.cs
parent438d992c8b0522f6a17f437ee991c8ef6808d749 (diff)
parent1adf441f1ca9d61c3d6c63df0ea87a870e03632f (diff)
Merge branch 'master' of https://github.com/JadedRain/jellyfin
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DynamicHlsController.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs
index 2614fe9956..fe6f855b5e 100644
--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs
+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs
@@ -1625,8 +1625,11 @@ public class DynamicHlsController : BaseJellyfinApiController
var useLegacySegmentOption = _mediaEncoder.EncoderVersion < _minFFmpegHlsSegmentOptions;
- // fMP4 needs this flag to write the audio packet DTS/PTS including the initial delay into MOOF::TRAF::TFDT
- hlsArguments += $" {(useLegacySegmentOption ? "-hls_ts_options" : "-hls_segment_options")} movflags=+frag_discont";
+ if (state.VideoStream is not null && state.IsOutputVideo)
+ {
+ // fMP4 needs this flag to write the audio packet DTS/PTS including the initial delay into MOOF::TRAF::TFDT
+ hlsArguments += $" {(useLegacySegmentOption ? "-hls_ts_options" : "-hls_segment_options")} movflags=+frag_discont";
+ }
segmentFormat = "fmp4" + outputFmp4HeaderArg;
}