From b2255651afd2e9b01e546492a6e48c5eba075d34 Mon Sep 17 00:00:00 2001 From: Felipe Marinho Date: Fri, 3 Jan 2025 12:42:20 -0300 Subject: [PATCH] Fix external subtitles extraction (null dereference) --- transcoder/src/extract.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transcoder/src/extract.go b/transcoder/src/extract.go index 1181c6cb..0e72e7db 100644 --- a/transcoder/src/extract.go +++ b/transcoder/src/extract.go @@ -60,6 +60,10 @@ func extractSubs(info *MediaInfo) error { for _, sub := range info.Subtitles { if ext := sub.Extension; ext != nil { + if sub.IsExternal { + // skip extraction of external subtitles + continue + } cmd.Args = append( cmd.Args, "-map", fmt.Sprintf("0:s:%d", *sub.Index),