Fix external subtitles extraction (null dereference)

This commit is contained in:
Felipe Marinho 2025-01-03 12:42:20 -03:00 committed by GitHub
parent f27e2344e5
commit b2255651af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),