OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a88009
)
rtpproto: Write a warning if the input data written isn't RTP packetized
author
Martin Storsjö
<martin@martin.st>
Sat, 6 Dec 2014 23:42:06 +0000
(
01:42
+0200)
committer
Martin Storsjö
<martin@martin.st>
Mon, 8 Dec 2014 09:59:12 +0000
(11:59 +0200)
Tell the user that the RTP muxer needs to be used to packetize
the data - using the RTP protocol on its own isn't enough.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpproto.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpproto.c
b/libavformat/rtpproto.c
index
d5ecfc8
..
1171fc2
100644
(file)
--- 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;