Support ffmpeg source without input

This commit is contained in:
Alex X
2024-05-03 13:49:39 +03:00
parent f64d279672
commit 07f51e6929
+1 -1
View File
@@ -145,7 +145,7 @@ func parseArgs(s string) *ffmpeg.Args {
}
var query url.Values
if i := strings.IndexByte(s, '#'); i > 0 {
if i := strings.IndexByte(s, '#'); i >= 0 {
query = streams.ParseQuery(s[i+1:])
args.Video = len(query["video"])
args.Audio = len(query["audio"])