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

Panic on h264.EmitNalus #1076

Closed
AlexxIT opened this issue May 1, 2024 · 1 comment
Closed

Panic on h264.EmitNalus #1076

AlexxIT opened this issue May 1, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@AlexxIT
Copy link
Owner

AlexxIT commented May 1, 2024

panic: runtime error: index out of range [3] with length 2

goroutine 849 [running]:
encoding/binary.bigEndian.Uint32(...)
	encoding/binary/binary.go:157
github.com/AlexxIT/go2rtc/pkg/h264.EmitNalus({0xa3cc000, 0x186f8, 0x186f8}, 0x1, 0xee1bec0)
	github.com/AlexxIT/go2rtc/pkg/h264/payloader.go:70 +0x114
github.com/AlexxIT/go2rtc/pkg/h264.(*Payloader).Payload(0x3944810, 0x4a4, {0xa3cc000, 0x186f8, 0x186f8})
	github.com/AlexxIT/go2rtc/pkg/h264/payloader.go:87 +0xa8
github.com/AlexxIT/go2rtc/pkg/h264.RTPPay.func1(0x88b4e60)
	github.com/AlexxIT/go2rtc/pkg/h264/rtp.go:119 +0x68
github.com/AlexxIT/go2rtc/pkg/h264.RepairAVCC.func1(0x88b4e60)
	github.com/AlexxIT/go2rtc/pkg/h264/avcc.go:22 +0x14c
github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP.func1()
	github.com/AlexxIT/go2rtc/pkg/core/track.go:144 +0x64
created by github.com/AlexxIT/go2rtc/pkg/core.(*Sender).HandleRTP in goroutine 843
	github.com/AlexxIT/go2rtc/pkg/core/track.go:140 +0x5dc

#1075

@AlexxIT AlexxIT added the panic label May 1, 2024
@AlexxIT AlexxIT self-assigned this May 5, 2024
AlexxIT added a commit that referenced this issue May 5, 2024
@AlexxIT AlexxIT added this to the v1.9.1 milestone May 5, 2024
@AlexxIT
Copy link
Owner Author

AlexxIT commented May 6, 2024

@AlexxIT AlexxIT closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant