Add ffmpeg async option for HomeKit audio

This commit is contained in:
Alexey Khit
2022-11-14 01:29:45 +03:00
parent eea413a36c
commit a4eab1944a
2 changed files with 5 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ func Init() {
input = strings.Replace(tpl["file"], "{input}", s, 1)
}
if _, ok := query["async"]; ok {
input = "-use_wallclock_as_timestamps 1 -async 1 " + input
}
s = cmd + input
if query != nil {