summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2017-03-20 20:28:09 +0000
committerMartin Storsjö <martin@martin.st>2017-03-26 13:29:56 +0300
commitd4f3c26b700ae847433ba3c67dc99c32bc1fd4a1 (patch)
tree7179b0269ea84cad8a53f39eb332b9e6c1872b66 /libavformat
parentd6390090c4dbd766b77353553d9cb4fb4fb41ebd (diff)
downloadffmpeg-streaming-d4f3c26b700ae847433ba3c67dc99c32bc1fd4a1.zip
ffmpeg-streaming-d4f3c26b700ae847433ba3c67dc99c32bc1fd4a1.tar.gz
rtmpproto: send swfverify value as swfurl if latter is unused
Replicates lavf/librtmp.c behavior in L145-152 and rtmpdump's behavior with "--swfVfy <url>" passing the url to swfUrl. Fixes bug 943. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtmpproto.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 7d40227..115c335 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -339,9 +339,12 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
ff_amf_write_field_name(&p, "flashVer");
ff_amf_write_string(&p, rt->flashver);
- if (rt->swfurl) {
+ if (rt->swfurl || rt->swfverify) {
ff_amf_write_field_name(&p, "swfUrl");
- ff_amf_write_string(&p, rt->swfurl);
+ if (rt->swfurl)
+ ff_amf_write_string(&p, rt->swfurl);
+ else
+ ff_amf_write_string(&p, rt->swfverify);
}
ff_amf_write_field_name(&p, "tcUrl");
OpenPOWER on IntegriCloud