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
838b1d60
Commit
838b1d60
authored
Sep 01, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: add EXT-X-MEDIA-SEQUENCE tag in M3U8 header
parent
ebd703f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
segment.c
libavformat/segment.c
+3
-0
No files found.
libavformat/segment.c
View file @
838b1d60
...
...
@@ -54,6 +54,7 @@ typedef struct {
AVFormatContext
*
avf
;
char
*
format
;
///< format to use for output segment files
char
*
list
;
///< filename for the segment list file
int
list_count
;
///< list counter
int
list_size
;
///< number of entries for the segment list file
double
list_max_segment_time
;
///< max segment time in the current list
ListType
list_type
;
///< set the list type
...
...
@@ -154,6 +155,7 @@ static int segment_list_open(AVFormatContext *s)
if
(
seg
->
list_type
==
LIST_TYPE_M3U8
)
{
avio_printf
(
seg
->
list_pb
,
"#EXTM3U
\n
"
);
avio_printf
(
seg
->
list_pb
,
"#EXT-X-VERSION:3
\n
"
);
avio_printf
(
seg
->
list_pb
,
"#EXT-X-MEDIA-SEQUENCE:%d
\n
"
,
seg
->
list_count
);
}
return
ret
;
...
...
@@ -168,6 +170,7 @@ static void segment_list_close(AVFormatContext *s)
(
int
)
ceil
(
seg
->
list_max_segment_time
));
avio_printf
(
seg
->
list_pb
,
"#EXT-X-ENDLIST
\n
"
);
}
seg
->
list_count
++
;
avio_close
(
seg
->
list_pb
);
}
...
...
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