提交 5ab46704 编写于 作者: M Michael Niedermayer

Merge commit '29bc7bfb'

* commit '29bc7bfb':
  rtpproto: Write a warning if the input data written isn't RTP packetized
Merged-by: NMichael Niedermayer <michaelni@gmx.at>
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册