mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rtmpproto: send swfverify value as swfurl if latter is unused
Replicates lavf/librtmp.c behavior in L149-156 and rtmpdump's behavior with "--swfVfy <url>" passing the url to swfUrl. Fixes trac ticket #5549. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ea93b74074
commit
c0b3781bf2
@ -341,9 +341,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");
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user