Merge commit '95d880fa6436f3b557a9c060428a04b9e4d552df'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Dec 2014 00:16:31 +0000 (01:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Dec 2014 00:24:12 +0000 (01:24 +0100)
* commit '95d880fa6436f3b557a9c060428a04b9e4d552df':
  rtpproto: Fix the input RTP data format check

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtpproto.c

index bef8f1a..88a3979 100644 (file)
@@ -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");