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
10a0436d
Commit
10a0436d
authored
Mar 18, 2018
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: reindent after previous commits
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
a92ca3c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
hlsenc.c
libavformat/hlsenc.c
+22
-22
No files found.
libavformat/hlsenc.c
View file @
10a0436d
...
...
@@ -2583,32 +2583,32 @@ static int hls_init(AVFormatContext *s)
}
av_strlcpy
(
vs
->
fmp4_init_filename
,
hls
->
fmp4_init_filename
,
fmp4_init_filename_len
);
if
(
hls
->
nb_varstreams
>
1
)
{
ret
=
append_postfix
(
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
,
i
);
if
(
ret
<
0
)
goto
fail
;
}
if
(
hls
->
nb_varstreams
>
1
)
{
ret
=
append_postfix
(
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
,
i
);
if
(
ret
<
0
)
goto
fail
;
}
fmp4_init_filename_len
=
strlen
(
vs
->
m3u8_name
)
+
strlen
(
vs
->
fmp4_init_filename
)
+
1
;
fmp4_init_filename_len
=
strlen
(
vs
->
m3u8_name
)
+
strlen
(
vs
->
fmp4_init_filename
)
+
1
;
vs
->
base_output_dirname
=
av_malloc
(
fmp4_init_filename_len
);
if
(
!
vs
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
vs
->
base_output_dirname
=
av_malloc
(
fmp4_init_filename_len
);
if
(
!
vs
->
base_output_dirname
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
av_strlcpy
(
vs
->
base_output_dirname
,
vs
->
m3u8_name
,
av_strlcpy
(
vs
->
base_output_dirname
,
vs
->
m3u8_name
,
fmp4_init_filename_len
);
p
=
strrchr
(
vs
->
base_output_dirname
,
'/'
);
if
(
p
)
{
*
(
p
+
1
)
=
'\0'
;
av_strlcat
(
vs
->
base_output_dirname
,
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
);
p
=
strrchr
(
vs
->
base_output_dirname
,
'/'
);
if
(
p
)
{
*
(
p
+
1
)
=
'\0'
;
av_strlcat
(
vs
->
base_output_dirname
,
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
else
{
av_strlcpy
(
vs
->
base_output_dirname
,
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
}
else
{
av_strlcpy
(
vs
->
base_output_dirname
,
vs
->
fmp4_init_filename
,
fmp4_init_filename_len
);
}
}
if
(
!
hls
->
use_localtime
)
{
...
...
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