Skip to content

Commit

Permalink
fix playlist out of bound panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronmi authored and vishen committed Aug 8, 2021
1 parent 1ddb038 commit 5eab24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/playlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ that ffmpeg is installed.`,
max = len(jNum)
}
for vi := 0; vi < max; vi++ {
if len(iNum) < vi {
if len(iNum) <= vi {
return false
}
if len(jNum) < vi {
if len(jNum) <= vi {
return true
}
if iNum[vi] == jNum[vi] {
Expand Down

0 comments on commit 5eab24c

Please sign in to comment.