summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-10 01:16:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-10 01:24:12 +0100
commitbd378acad4e4865879bee0862c685e7f56ec91a9 (patch)
tree806097fb79e56204c4886e8e5f0e9d93736a49e4 /libavformat/rtpproto.c
parentb7bfe17824b668bb5865024029cacaf083b2c1ce (diff)
parent95d880fa6436f3b557a9c060428a04b9e4d552df (diff)
downloadffmpeg-bd378acad4e4865879bee0862c685e7f56ec91a9.tar.gz
Merge commit '95d880fa6436f3b557a9c060428a04b9e4d552df'
* commit '95d880fa6436f3b557a9c060428a04b9e4d552df': rtpproto: Fix the input RTP data format check Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index bef8f1aa1e..88a39796a9 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -437,7 +437,7 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
if (size < 2)
return AVERROR(EINVAL);
- if (buf[0] != (RTP_VERSION << 6))
+ if ((buf[0] & 0xc0) != (RTP_VERSION << 6))
av_log(h, AV_LOG_WARNING, "Data doesn't look like RTP packets, "
"make sure the RTP muxer is used\n");