Commit f3a094f2 authored by Martin Storsjö's avatar Martin Storsjö

sdp: Ignore RTCP packets when autodetecting RTP streams

The rtp demuxer which listens for RTP packets and detects the
RTP payload type will currently get confused if the first packet
received is an RTCP packet. Thus ignore such packets.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 17b11ffe
......@@ -1927,6 +1927,9 @@ static int rtp_read_header(AVFormatContext *s)
continue;
}
if (recvbuf[1] >= RTCP_SR && recvbuf[1] <= RTCP_APP)
continue;
payload_type = recvbuf[1] & 0x7f;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment