summaryrefslogtreecommitdiff
path: root/libavformat/rtpproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtpproto.c')
-rw-r--r--libavformat/rtpproto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index d5ecfc8898..1171fc2f14 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -411,6 +411,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;