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
c7360512
Commit
c7360512
authored
Nov 02, 2017
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: reindent hlsenc code
Signed-off-by:
Steven Liu
<
lq@onvideo.cn
>
parent
c52beb48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
hlsenc.c
libavformat/hlsenc.c
+26
-26
No files found.
libavformat/hlsenc.c
View file @
c7360512
...
...
@@ -1444,36 +1444,36 @@ static int hls_write_header(AVFormatContext *s)
}
if
(
hls
->
segment_type
==
SEGMENT_TYPE_FMP4
)
{
if
(
av_strcasecmp
(
hls
->
fmp4_init_filename
,
"init.mp4"
))
{
hls
->
base_output_dirname
=
av_malloc
(
fmp4_init_filename_len
);
if
(
!
hls
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
av_strlcpy
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
else
{
if
(
basename_size
>
0
)
{
hls
->
base_output_dirname
=
av_malloc
(
basename_size
);
if
(
av_strcasecmp
(
hls
->
fmp4_init_filename
,
"init.mp4"
))
{
hls
->
base_output_dirname
=
av_malloc
(
fmp4_init_filename_len
);
if
(
!
hls
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
av_strlcpy
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
else
{
hls
->
base_output_dirname
=
av_malloc
(
strlen
(
hls
->
fmp4_init_filename
));
}
if
(
!
hls
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
if
(
basename_size
>
0
)
{
hls
->
base_output_dirname
=
av_malloc
(
basename_size
);
}
else
{
hls
->
base_output_dirname
=
av_malloc
(
strlen
(
hls
->
fmp4_init_filename
));
}
if
(
!
hls
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
if
(
basename_size
>
0
)
{
av_strlcpy
(
hls
->
base_output_dirname
,
s
->
filename
,
basename_size
);
p
=
strrchr
(
hls
->
base_output_dirname
,
'/'
);
}
if
(
p
)
{
*
(
p
+
1
)
=
'\0'
;
av_strlcat
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
basename_size
);
}
else
{
av_strlcpy
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
fmp4_init_filename_len
);
if
(
basename_size
>
0
)
{
av_strlcpy
(
hls
->
base_output_dirname
,
s
->
filename
,
basename_size
);
p
=
strrchr
(
hls
->
base_output_dirname
,
'/'
);
}
if
(
p
)
{
*
(
p
+
1
)
=
'\0'
;
av_strlcat
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
basename_size
);
}
else
{
av_strlcpy
(
hls
->
base_output_dirname
,
hls
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
}
}
}
if
(
!
hls
->
use_localtime
)
{
ret
=
sls_flag_check_duration_size_index
(
hls
);
...
...
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