projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b11ff
)
sdp: Ignore RTCP packets when autodetecting RTP streams
author
Martin Storsjö
<martin@martin.st>
Mon, 13 Feb 2012 15:05:43 +0000
(17:05 +0200)
committer
Martin Storsjö
<martin@martin.st>
Thu, 16 Feb 2012 15:14:35 +0000
(16:14 +0100)
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>
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
1fb7b2b
..
f8611de
100644
(file)
--- 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;
}