diff options
| author | b5f0d6c3 <[email protected]> | 2022-03-23 14:45:18 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-03-23 14:45:18 +0800 |
| commit | 12b9924e13a6d12326e2e0174e152d4a030f1260 (patch) | |
| tree | 2fa9fefd4c4b0f059ccca8088505291d2eb44772 | |
| parent | ff9e37fb69b52d2a0f4285ded2412350f15ff5c7 (diff) | |
update mkvtool:fix bugs
| -rw-r--r-- | mkvlib/shared.go | 2 | ||||
| -rw-r--r-- | mkvlib/utils.go | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mkvlib/shared.go b/mkvlib/shared.go index b07c828..8d89cde 100644 --- a/mkvlib/shared.go +++ b/mkvlib/shared.go @@ -11,7 +11,7 @@ import ( ) const libName = "mkvlib" -const libVer = "v1.2.8" +const libVer = "v1.2.9" const LibFName = libName + " " + libVer diff --git a/mkvlib/utils.go b/mkvlib/utils.go index 802b94e..4615975 100644 --- a/mkvlib/utils.go +++ b/mkvlib/utils.go @@ -41,6 +41,9 @@ func findPath(path, expr string) (list []string, err error) { } err = queryPath(path, func(path string) bool { if expr == "" || reg.MatchString(path) { + if !filepath.IsAbs(path) { + path, _ = filepath.Abs(path) + } list = append(list, path) } return true |
