Skip to content
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

部分海康的IPC在解析SPS的时候会因为设置动态码率而Panic #161

Open
autoexpect opened this issue Nov 20, 2024 · 0 comments

Comments

@autoexpect
Copy link
Contributor

VPS(hex): 40010c02ffff0160000003008000000300000300780000ad6048
SPS(hex): 4201020160000003008000000300000300780000a003c08010e7f8dad776a6eee6b955602dc040404100000303e8000061a8721dee51003d38001139c007a700022738400f4e00044e7001e9c00089ce20
PPS(hex): 4401c172b09c140a6240
echo: http: panic serving 10.66.11.17:36342: cpb_cnt_minus1 > 31
goroutine 158 [running]:
net/http.(*conn).serve.func1()
	/opt/go/src/net/http/server.go:1947 +0xb0
panic({0x11d88c0?, 0x15bfa80?})
	/opt/go/src/runtime/panic.go:785 +0x124
github.com/yapingcat/gomedia/go-codec.skip_hrd_parameters(0x8?, 0x1, 0x40003d9180)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-codec/h265.go:414 +0x4c8
github.com/yapingcat/gomedia/go-codec.(*VUI_Parameters).Decode(0x40003d93c8, 0x40003d9180, 0x1)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-codec/h265.go:346 +0x5cc
github.com/yapingcat/gomedia/go-codec.(*H265RawSPS).Decode(0x40003d9330, {0x4000896020?, 0x13eb3e5?, 0x0?})
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-codec/h265.go:276 +0x674
github.com/yapingcat/gomedia/go-codec.(*HEVCRecordConfiguration).UpdateSPS(0x400094e200, {0x400089601d, 0x54, 0x27fe3})
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-codec/h265.go:772 +0x9c
github.com/yapingcat/gomedia/go-mp4.(*mp4track).writeH265.func1({0x400089601d, 0x54, 0x27fe3})
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-mp4/mp4track.go:381 +0xd4
github.com/yapingcat/gomedia/go-codec.SplitFrameWithStartCode({0x4000896000, 0x220e1, 0x28000}, 0x40003d95d8)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-codec/util.go:66 +0xc0
github.com/yapingcat/gomedia/go-mp4.(*mp4track).writeH265(0x4000263ec0?, {0x4000896000?, 0x40003d9648?, 0xff1b5c?}, 0x40003d9698?, 0x1004290?)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-mp4/mp4track.go:377 +0x7c
github.com/yapingcat/gomedia/go-mp4.(*mp4track).writeSample(0x1243380?, {0x4000896000?, 0x1?, 0x28000?}, 0x12ac9?, 0x28000?)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-mp4/mp4track.go:282 +0x4c
github.com/yapingcat/gomedia/go-mp4.(*Movmuxer).Write(0x4000f9c280, 0x2?, {0x4000896000, 0x220e1, 0x28000}, 0x0, 0x0)
	/home/harry/.gopath/pkg/mod/github.com/yapingcat/[email protected]/go-mp4/mp4muxer.go:166 +0x6c
mediaedge/stream.mp4_loop(0x3, {0x15c2a00, 0x40002e6180}, {0x15d3660, 0x4000166ea0}, 0x0, 0xea60, {0x13eb3f1, 0x6})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant