aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-02-16 17:31:03 +0100
committerMartin Storsjö <martin@martin.st>2012-02-16 17:45:33 +0100
commit298a587f447fbc9103f66a50b8433aab977afc9b (patch)
tree3459d7d1ead32738239ea93c9c000ab25845bcad /libavformat/rtsp.c
parentc6643fddba73560f26f90d327c84d8832222a720 (diff)
downloadffmpeg-298a587f447fbc9103f66a50b8433aab977afc9b.tar.gz
rtp: Factorize the check for distinguishing RTCP packets from RTP
The binary doesn't change after this patch. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index f8611deed2..359d910076 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1927,7 +1927,7 @@ static int rtp_read_header(AVFormatContext *s)
continue;
}
- if (recvbuf[1] >= RTCP_SR && recvbuf[1] <= RTCP_APP)
+ if (RTP_PT_IS_RTCP(recvbuf[1]))
continue;
payload_type = recvbuf[1] & 0x7f;