Skip to content

Commit

Permalink
Override user agent used by ffmpeg. Should help with servers that ref…
Browse files Browse the repository at this point in the history
…use connections when not identified as a web browser user agent.
  • Loading branch information
clsid2 committed Oct 3, 2020
1 parent 7284eb6 commit 1acca71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demuxer/Demuxers/LAVFDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ STDMETHODIMP CLAVFDemuxer::OpenInputStream(AVIOContext *byteContext, LPCOLESTR p
av_dict_set(&options, "icy", "1", 0); // request ICY metadata
av_dict_set(&options, "advanced_editlist", "0", 0); // disable broken mov editlist handling
av_dict_set(&options, "reconnect", "1", 0); // for http, reconnect if we get disconnected
av_dict_set(&options, "user_agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0", 0);
av_dict_set(&options, "tls_verify", "0", 0);

if (rtsp_transport != nullptr)
{
Expand Down

0 comments on commit 1acca71

Please sign in to comment.