[FFmpeg-cvslog] rtmpproto: send swfverify value as swfurl if latter is unused

Ricardo Constantino git at videolan.org
Tue Oct 24 01:55:16 EEST 2017


ffmpeg | branch: master | Ricardo Constantino <wiiaboo at gmail.com> | Mon Mar 20 20:28:09 2017 +0000| [d4f3c26b700ae847433ba3c67dc99c32bc1fd4a1] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d4f3c26b700ae847433ba3c67dc99c32bc1fd4a1
---

 libavformat/rtmpproto.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 7d40227632..115c335974 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");



More information about the ffmpeg-cvslog mailing list