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
94060161
Commit
94060161
authored
May 09, 2020
by
Andreas Rheinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: Don't cast const away
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@gmail.com
>
parent
d41c93d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
hlsenc.c
libavformat/hlsenc.c
+4
-4
No files found.
libavformat/hlsenc.c
View file @
94060161
...
...
@@ -525,10 +525,10 @@ static int hls_delete_old_segments(AVFormatContext *s, HLSContext *hls,
int
ret
=
0
;
int
segment_cnt
=
0
;
AVBPrint
path
;
char
*
dirname
=
NULL
;
c
onst
c
har
*
dirname
=
NULL
;
char
*
dirname_r
=
NULL
;
char
*
dirname_repl
=
NULL
;
char
*
vtt_dirname
=
NULL
;
c
onst
c
har
*
vtt_dirname
=
NULL
;
char
*
vtt_dirname_r
=
NULL
;
const
char
*
proto
=
NULL
;
...
...
@@ -559,7 +559,7 @@ static int hls_delete_old_segments(AVFormatContext *s, HLSContext *hls,
if
(
segment
&&
!
hls
->
use_localtime_mkdir
)
{
dirname_r
=
hls
->
segment_filename
?
av_strdup
(
hls
->
segment_filename
)
:
av_strdup
(
vs
->
avf
->
url
);
dirname
=
(
char
*
)
av_dirname
(
dirname_r
);
dirname
=
av_dirname
(
dirname_r
);
}
/* if %v is present in the file's directory
...
...
@@ -598,7 +598,7 @@ static int hls_delete_old_segments(AVFormatContext *s, HLSContext *hls,
if
((
segment
->
sub_filename
[
0
]
!=
'\0'
))
{
vtt_dirname_r
=
av_strdup
(
vs
->
vtt_avf
->
url
);
vtt_dirname
=
(
char
*
)
av_dirname
(
vtt_dirname_r
);
vtt_dirname
=
av_dirname
(
vtt_dirname_r
);
av_bprint_clear
(
&
path
);
av_bprintf
(
&
path
,
"%s%c%s"
,
vtt_dirname
,
SEPARATOR
,
...
...
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