Fix BDMV with external subtitle

GetSubtitleStreamIndexForFfmpeg treated
external and internal subtitles the same. This
made subtitles out of sync with the video.
This commit is contained in:
Oskar Bali
2026-08-29 13:52:20 +02:00
parent c15656280e
commit 163895b99f
@@ -7946,7 +7946,7 @@ namespace MediaBrowser.Controller.MediaEncoding
public static int GetSubtitleStreamIndexForFfmpeg(MediaSourceInfo mediaSource, MediaStream subtitleStream)
{
var index = FindIndex(mediaSource.MediaStreams, subtitleStream);
if (index == -1 || mediaSource.VideoType != VideoType.BluRay)
if (index == -1 || subtitleStream.IsExternal || mediaSource.VideoType != VideoType.BluRay)
{
return index;
}