Skip to content

Commit

Permalink
Support ffmpeg source without input
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 3, 2024
1 parent f64d279 commit 07f51e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 07f51e6

Please sign in to comment.