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
07b4bf5f
Commit
07b4bf5f
authored
Sep 06, 2019
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: move the warning message from every segment upload to init part
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
f267a2ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
hlsenc.c
libavformat/hlsenc.c
+5
-1
No files found.
libavformat/hlsenc.c
View file @
07b4bf5f
...
...
@@ -290,7 +290,6 @@ static void set_http_options(AVFormatContext *s, AVDictionary **options, HLSCont
if
(
c
->
method
)
{
av_dict_set
(
options
,
"method"
,
c
->
method
,
0
);
}
else
if
(
http_base_proto
)
{
av_log
(
c
,
AV_LOG_WARNING
,
"No HTTP method set, hls muxer defaulting to method PUT.
\n
"
);
av_dict_set
(
options
,
"method"
,
"PUT"
,
0
);
}
if
(
c
->
user_agent
)
...
...
@@ -2673,6 +2672,7 @@ static int hls_init(AVFormatContext *s)
const
char
*
vtt_pattern
=
"%d.vtt"
;
char
*
p
=
NULL
;
int
vtt_basename_size
=
0
;
int
http_base_proto
=
ff_is_http_proto
(
s
->
url
);
int
fmp4_init_filename_len
=
strlen
(
hls
->
fmp4_init_filename
)
+
1
;
hls
->
has_default_key
=
0
;
...
...
@@ -2690,6 +2690,10 @@ static int hls_init(AVFormatContext *s)
goto
fail
;
}
if
(
!
hls
->
method
&&
http_base_proto
)
{
av_log
(
c
,
AV_LOG_WARNING
,
"No HTTP method set, hls muxer defaulting to method PUT.
\n
"
);
}
ret
=
validate_name
(
hls
->
nb_varstreams
,
s
->
url
);
if
(
ret
<
0
)
goto
fail
;
...
...
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