summaryrefslogtreecommitdiff
path: root/mkvlib/ass.go
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2022-04-21 12:01:06 +0800
committerb5f0d6c3 <[email protected]>2022-04-21 12:01:06 +0800
commit4219efb8ffe540d9c9068a18d6d2cc0c23ce9c05 (patch)
tree6e4220889a9f3f20490f84f55a5c88600ef2c042 /mkvlib/ass.go
parent300cea250a17eb64c97488ec860bf8fb591f1dfc (diff)
update mkvlib:fix bugs
Diffstat (limited to 'mkvlib/ass.go')
-rw-r--r--mkvlib/ass.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkvlib/ass.go b/mkvlib/ass.go
index 58a1910..b0b2426 100644
--- a/mkvlib/ass.go
+++ b/mkvlib/ass.go
@@ -11,6 +11,7 @@ import (
"io/ioutil"
"os"
"path"
+ "path/filepath"
"regexp"
"strconv"
"strings"
@@ -524,6 +525,9 @@ func (self *assProcessor) replaceFontNameInAss() bool {
func (self *assProcessor) createFontsCache(output string) []string {
cache := make([]fontCache, 0)
+ if !filepath.IsAbs(self._fonts) {
+ self._fonts, _ = filepath.Abs(self._fonts)
+ }
fonts := findFonts(self._fonts)
ok := 0
l := len(fonts)