-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vlc play stream successful,but in this program it failed. #221
Comments
O[2023-10-23T23:47:15+08:00] Server CORE start func=main module=main |
the console output is like this:
`2023/10/23 21:04:13 [Recovery] 2023/10/23 - 21:04:13 panic recovered:
runtime error: index out of range [0] with length 0
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/runtime/panic.go:114 (0x438b7b)
goPanicIndex: panic(boundsError{x: int64(x), signed: true, y: y, code: boundsIndex})
/home/tony/go/pkg/mod/github.com/deepch/[email protected]/codec/h264parser/parser.go:668 (0xa1d865)
CodecData.SPS: return self.RecordInfo.SPS[0]
/home/tony/RTSPtoWebRTC/config.go:186 (0xa1d5f8)
(*ConfigST).coGe: if codecVideo.SPS() != nil && codecVideo.PPS() != nil && len(codecVideo.SPS()) > 0 && len(codecVideo.PPS()) > 0 {
/home/tony/RTSPtoWebRTC/http.go:74 (0xa1ebfa)
HTTPAPIServerStreamCodec: codecs := Config.coGe(c.Param("uuid"))
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x9f754a)
(*Context).Next: c.handlersc.index
/home/tony/RTSPtoWebRTC/http.go:170 (0xa223b9)
serveHTTP.CORSMiddleware.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0xa043b9)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0xa043a7)
CustomRecoveryWithWriter.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0xa0355d)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0xa0352c)
LoggerWithConfig.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0xa0263a)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620 (0xa022cd)
(*Engine).handleHTTPRequest: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576 (0xa01dfc)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/net/http/server.go:2938 (0x6e29cd)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/net/http/server.go:2009 (0x6de8b3)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/runtime/asm_amd64.s:1650 (0x46d6c0)
goexit: BYTE $0x90 // NOP
[GIN] 2023/10/23 - 21:04:13 | 500 | 632.757µs | 127.0.0.1 | GET "/stream/codec/demo3"
`
The text was updated successfully, but these errors were encountered: