X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtpproto.c;h=5bff00ed7a14fc88cd6f0075ec25d1be45fee69f;hb=adc214e6797750285a5e62634b8521db521162ad;hp=1171fc2f14b4546082c2e07aa21369686c38a762;hpb=29bc7bfba288ff8572ed967a8752a1dbde7b724b;p=ffmpeg diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 1171fc2f14b..5bff00ed7a1 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -411,7 +411,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");