]> git.sesse.net Git - ffmpeg/commit
avformat/ftp: add AVOptions for authentication
authorNicolas Frattaroli <ffmpeg@fratti.ch>
Sat, 26 Oct 2019 22:37:32 +0000 (00:37 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 3 Nov 2019 11:24:19 +0000 (12:24 +0100)
commita8ec0685ac1cfbeb0e87f47b86d4f0b5cf75d745
treec498d98b87c4e7474a8d43aa053483e5eacab050
parent5e3229df4ca86322f334bd098a9335f66ebdd649
avformat/ftp: add AVOptions for authentication

This introduces two new AVOption options for the FTP protocol,
one named ftp-user to supply the username to be used for auth,
one named ftp-password to supply the password to be used for auth.

These are useful for when an API user does not wish to deal with
URL manipulation and percent encoding.

Setting them while also having credentials in the URL will use the
credentials from the URL. The rationale for this is that credentials
embedded in the URL are probably more specific to what the user is
trying to do than anything set by some API user.

Signed-off-by: Nicolas Frattaroli <ffmpeg@fratti.ch>
Signed-off-by: Marton Balint <cus@passwd.hu>
doc/protocols.texi
libavformat/ftp.c
libavformat/version.h