You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
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: Martin Storsjö <martin@martin.st>
This commit is contained in:
@ -1927,6 +1927,9 @@ static int rtp_read_header(AVFormatContext *s)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (recvbuf[1] >= RTCP_SR && recvbuf[1] <= RTCP_APP)
|
||||||
|
continue;
|
||||||
|
|
||||||
payload_type = recvbuf[1] & 0x7f;
|
payload_type = recvbuf[1] & 0x7f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user