rtpdec: Read the packet length for all RTCP packet types
authorJohn Brooks <john.brooks@bluecherry.net>
Wed, 12 Oct 2011 06:53:12 +0000 (00:53 -0600)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Nov 2011 00:09:05 +0000 (01:09 +0100)
commit2c0cddf25517b2fbe208637e599d517832ebc0e3
treec787548c5dfcb07af48148a369233c1956d2d785
parentd398d042c1b141277b81a24ba800db2832c5fe9c
rtpdec: Read the packet length for all RTCP packet types

This allows skipping past unsupported RTCP packet types, as
RFC 3550 section 6.1 mandates.

Currently this only has any practical effect if a sender puts
an unrecognized type before RTCP_BYE in a compounded packet, or
(incorrectly) does not put RTCP_SR first.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 07b77fe3871f86b87e35876d38f1969da5ece4b2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtpdec.c