From 07f51e69299c60915ba072bfe28451c80324027b Mon Sep 17 00:00:00 2001 From: Alex X Date: Fri, 3 May 2024 13:49:39 +0300 Subject: [PATCH] Support ffmpeg source without input --- internal/ffmpeg/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ffmpeg/ffmpeg.go b/internal/ffmpeg/ffmpeg.go index 5d94d3c1..54f5abaa 100644 --- a/internal/ffmpeg/ffmpeg.go +++ b/internal/ffmpeg/ffmpeg.go @@ -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"])