OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52aa433
)
Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)
author
Martin Storsjö
<martin@martin.st>
Fri, 19 Feb 2010 23:11:59 +0000
(23:11 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 19 Feb 2010 23:11:59 +0000
(23:11 +0000)
mode.
Patch by Martin Storsjö <$firstname $firstname st>.
Originally committed as revision 21912 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
35c965c
..
d16a9bd
100644
(file)
--- a/
libavformat/rtsp.c
+++ b/
libavformat/rtsp.c
@@
-1109,7
+1109,9
@@
static int make_setup_request(AVFormatContext *s, const char *host, int port,
snprintf(transport, sizeof(transport) - 1,
"%s/UDP;multicast", trans_pref);
}
- if (rt->server_type == RTSP_SERVER_REAL ||
+ if (s->oformat) {
+ av_strlcat(transport, ";mode=receive", sizeof(transport));
+ } else if (rt->server_type == RTSP_SERVER_REAL ||
rt->server_type == RTSP_SERVER_WMS)
av_strlcat(transport, ";mode=play", sizeof(transport));
snprintf(cmd, sizeof(cmd),