diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-08 12:14:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-08 12:15:44 +0100 |
commit | 5ab467043a2b4df10e2731d3ac9ba39039386228 (patch) | |
tree | ef0d490cdefbb3495220c7ebc7e3de2c9e0b7ca7 /libavformat | |
parent | 3f24dacf810e214440d691dcbc7231905c736ebb (diff) | |
parent | 29bc7bfba288ff8572ed967a8752a1dbde7b724b (diff) |
Merge commit '29bc7bfba288ff8572ed967a8752a1dbde7b724b'
* commit '29bc7bfba288ff8572ed967a8752a1dbde7b724b':
rtpproto: Write a warning if the input data written isn't RTP packetized
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpproto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 0ea95686c5..bef8f1aa1e 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; |