Skip to content

Commit

Permalink
http: send self url as referer
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 authored and Nevcairiel committed Feb 19, 2022
1 parent 8bf1469 commit 5da67b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demuxer/Demuxers/LAVFDemuxer.cpp
Expand Up @@ -348,6 +348,7 @@ 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, "referer", fileName, 0); // for http, send self as referer
av_dict_set(&options, "skip_clear", "1", 0); // mpegts program handling

// send global side data to the decoder
Expand Down

0 comments on commit 5da67b5

Please sign in to comment.