You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/hls: don't propagate deprecated "user-agent" AVOption
This code will print a warning if any user agent is set - even if the API user used the proper non-deprecated "user_agent" option. This change should not even break anything, because even if the user sets the deprecated "user-agent" option, http.c copies it to the "user_agent" option anyway.
This commit is contained in:
@@ -1593,7 +1593,7 @@ static int save_avio_options(AVFormatContext *s)
|
|||||||
{
|
{
|
||||||
HLSContext *c = s->priv_data;
|
HLSContext *c = s->priv_data;
|
||||||
static const char * const opts[] = {
|
static const char * const opts[] = {
|
||||||
"headers", "http_proxy", "user_agent", "user-agent", "cookies", "referer", "rw_timeout", NULL };
|
"headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL };
|
||||||
const char * const * opt = opts;
|
const char * const * opt = opts;
|
||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Reference in New Issue
Block a user