Skip to content

Commit

Permalink
fix: typo in audio chunked reader
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Apr 17, 2024
1 parent 6b2fae9 commit 0c7a32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/chunked_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (r *HttpChunkedReader) ReadAt(p []byte, pos int64) (n int, _ error) {
}

// read the chunk data
c := chunk[max(off, len(chunk)):]
c := chunk[min(off, len(chunk)):]
if len(c) > len(p) {
// the chunk is bigger than our output buffer, just copy everything and return
n += copy(p, c[:len(p)])
Expand Down

0 comments on commit 0c7a32f

Please sign in to comment.