Browse Source

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>
tags/n0.11
Martin Storsjö 14 years ago
parent
commit
f3a094f2da
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/rtsp.c

+ 3
- 0
libavformat/rtsp.c View File

@@ -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;
}


Loading…
Cancel
Save