Skip to content

Fix header ext data length calculation in rtpdec.c#1

Open
tonykwok wants to merge 2 commits into
Koshub:release-2.4.2from
tonykwok:release-2.4.2
Open

Fix header ext data length calculation in rtpdec.c#1
tonykwok wants to merge 2 commits into
Koshub:release-2.4.2from
tonykwok:release-2.4.2

Conversation

@tonykwok
Copy link
Copy Markdown

when calculating the data length of header extension data in RTP packet, we should take the four-octet extension header into account.

when calculating the data length of header extension data in RTP packet, we should also take  the four-octet extension header into account.
Comment thread libavformat/rtpdec.c
extlen = (AV_RB16(buf + 2) + 1) << 2;
/* should also take the four-octet extension header into
* account */
extlen += 4;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tonykwok Hello. Thank you very much for your attention and your PR. I am not sure but hasn't four-octet extension header already been applied above?:

len   -= 4 * csrc;
buf   += 4 * csrc;

or would you like to have it as a part of extension data?

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

Successfully merging this pull request may close these issues.

2 participants