diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 0ea95686c54c122cc76bb9cc040ff0d72a7acafb..bef8f1aa1e3d218edf076be02511a222703b303f 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -437,6 +437,10 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size) if (size < 2) return AVERROR(EINVAL); + if (buf[0] != (RTP_VERSION << 6)) + av_log(h, AV_LOG_WARNING, "Data doesn't look like RTP packets, " + "make sure the RTP muxer is used\n"); + if (s->write_to_source) { int fd; struct sockaddr_storage *source, temp_source;