Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
04b60606
Commit
04b60606
authored
May 24, 2018
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashdec: replace user-agent to user_agent for deprecate warning message
parent
93fc96e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dashdec.c
libavformat/dashdec.c
+3
-3
No files found.
libavformat/dashdec.c
View file @
04b60606
...
...
@@ -380,7 +380,7 @@ static void free_audio_list(DASHContext *c)
static
void
set_httpheader_options
(
DASHContext
*
c
,
AVDictionary
**
opts
)
{
// broker prior HTTP options that should be consistent across requests
av_dict_set
(
opts
,
"user
-
agent"
,
c
->
user_agent
,
0
);
av_dict_set
(
opts
,
"user
_
agent"
,
c
->
user_agent
,
0
);
av_dict_set
(
opts
,
"cookies"
,
c
->
cookies
,
0
);
av_dict_set
(
opts
,
"headers"
,
c
->
headers
,
0
);
if
(
c
->
is_live
)
{
...
...
@@ -1731,7 +1731,7 @@ end:
static
int
save_avio_options
(
AVFormatContext
*
s
)
{
DASHContext
*
c
=
s
->
priv_data
;
const
char
*
opts
[]
=
{
"headers"
,
"user_agent"
,
"user
-
agent"
,
"cookies"
,
NULL
},
**
opt
=
opts
;
const
char
*
opts
[]
=
{
"headers"
,
"user_agent"
,
"user
_
agent"
,
"cookies"
,
NULL
},
**
opt
=
opts
;
uint8_t
*
buf
=
NULL
;
int
ret
=
0
;
...
...
@@ -1919,7 +1919,7 @@ static int dash_read_header(AVFormatContext *s)
c
->
interrupt_callback
=
&
s
->
interrupt_callback
;
// if the URL context is good, read important options we must broker later
if
(
u
)
{
update_options
(
&
c
->
user_agent
,
"user
-
agent"
,
u
);
update_options
(
&
c
->
user_agent
,
"user
_
agent"
,
u
);
update_options
(
&
c
->
cookies
,
"cookies"
,
u
);
update_options
(
&
c
->
headers
,
"headers"
,
u
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment