diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-06-05 21:26:08 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-06-05 23:41:05 +0200 |
| commit | a96824f25759a21635157e6a97f364161fadcefa (patch) | |
| tree | e6da3481a14a203c64d7177a3967e11789d75d71 /MediaBrowser.MediaEncoding | |
| parent | efb0336369a2738825f0f0940c3d969c94a81d4e (diff) | |
| parent | 1a2db53710b4bec30ca066af030ebc55b904c61d (diff) | |
Merge remote-tracking branch 'upstream/master' into fix-external-sub-invalidation
Diffstat (limited to 'MediaBrowser.MediaEncoding')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs index 3e4c9a6f52..67e323177b 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs @@ -215,7 +215,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles } // Normalize ffmpeg codec names to the file extensions the parser is keyed on - var currentFormat = NormalizeCodecToParserExtension(subtitleStream.Codec ?? Path.GetExtension(subtitleStream.Path).TrimStart('.')); + var currentFormat = NormalizeCodecToParserExtension((Path.GetExtension(subtitleStream.Path) ?? subtitleStream.Codec).TrimStart('.')); // Handle PGS subtitles as raw streams for the client to render if (MediaStream.IsPgsFormat(currentFormat)) |
