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
7266e24f
Commit
7266e24f
authored
Apr 29, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: Sync the file number with the start sequence
parent
a1643103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
hlsenc.c
libavformat/hlsenc.c
+1
-4
No files found.
libavformat/hlsenc.c
View file @
7266e24f
...
...
@@ -173,7 +173,7 @@ static int hls_start(AVFormatContext *s)
int
err
=
0
;
if
(
av_get_frame_filename
(
oc
->
filename
,
sizeof
(
oc
->
filename
),
c
->
basename
,
c
->
wrap
?
c
->
number
%
c
->
wrap
:
c
->
number
)
<
0
)
c
->
basename
,
c
->
wrap
?
c
->
sequence
%
c
->
wrap
:
c
->
sequence
)
<
0
)
return
AVERROR
(
EINVAL
);
c
->
number
++
;
...
...
@@ -195,9 +195,6 @@ static int hls_write_header(AVFormatContext *s)
const
char
*
pattern
=
"%d.ts"
;
int
basename_size
=
strlen
(
s
->
filename
)
+
strlen
(
pattern
)
+
1
;
hls
->
number
=
0
;
hls
->
sequence
=
hls
->
start_sequence
;
hls
->
recording_time
=
hls
->
time
*
AV_TIME_BASE
;
hls
->
start_pts
=
AV_NOPTS_VALUE
;
...
...
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