Commit bd378aca authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '95d880fa'

* commit '95d880fa':
  rtpproto: Fix the input RTP data format check
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b7bfe178 95d880fa
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment