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/vdk@v0.0.20/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/gin@v1.9.0/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/gin@v1.9.0/context.go:174 (0xa043b9)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/recovery.go:102 (0xa043a7)
CustomRecoveryWithWriter.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0355d)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/logger.go:240 (0xa0352c)
LoggerWithConfig.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0263a)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:620 (0xa022cd)
(*Engine).handleHTTPRequest: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/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 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/vdk@v0.0.20/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/gin@v1.9.0/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/gin@v1.9.0/context.go:174 (0xa043b9)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/recovery.go:102 (0xa043a7)
CustomRecoveryWithWriter.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0355d)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/logger.go:240 (0xa0352c)
LoggerWithConfig.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0263a)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:620 (0xa022cd)
(*Engine).handleHTTPRequest: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/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"
`