]> git.sesse.net Git - ffmpeg/commit
rtsp: Parse SSRC attributes in the SDP
authorMartin Storsjö <martin@martin.st>
Tue, 4 Dec 2012 13:28:29 +0000 (15:28 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 11 May 2016 07:35:26 +0000 (10:35 +0300)
commitbc2a32969eb4db17677971def5ad5b936d9d1648
treeeaef38ba097ad7d0c912df2ab610e964091e389d
parent9ea78fd00a49f0691c1a5134eb59d4e5bb380a2a
rtsp: Parse SSRC attributes in the SDP

When feeding input RTP packets to the depacketizer via custom IO,
it needs to pick the right stream using the payload type for
RTP packets, and using the SSRC for RTCP packets. If the first
packet is an RTCP packet, we don't (currently) know the SSRC
yet and thus can't pick the right RTP depacketizer to handle it.

By parsing the SSRC attribute in the SDP, we can map initial
RTCP packets to the right stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c
libavformat/rtsp.h