Pārlūkot izejas kodu

Add a comment of why we need to fix index length

tags/v1.0
Ramiro de Zavalia pirms 5 gadiem
vecāks
revīzija
3569ecc95c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      main.go

+ 2
- 0
main.go Parādīt failu

@@ -26,6 +26,8 @@ type m3u8Json struct {
Manifest interface{}
}

// by default m3u8 package creates a 1024 length slice. We need to update the
// len of the slice so we don't get null when doing json marshal
func nilIndex(input []*m3u8.MediaSegment) int {
output := -1


Notiek ielāde…
Atcelt
Saglabāt