Skip to content

The Jitter buffer interceptor doesn't respect the actual packet length #255

@braams

Description

@braams

Your environment.

What did you do?

I'm trying to use jitter buffer interceptor.

What did you expect?

I expect to receive RTP packets as usual, but in correct order.

What happened?

I receive invalid RTP packets. The payload length is more than expected. The payload is filled by zeroes.

The reason

The interceptor tries to unmarshal the whole buffer and doesn't respect the actual packet length.

if err := packet.Unmarshal(buf); err != nil {

It looks like we should replace packet.Unmarshal(buf) to packet.Unmarshal(buf[:n])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions