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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user