diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 1fb7b2bcda..f8611deed2 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; }