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
aa1cceb5
Commit
aa1cceb5
authored
Jan 13, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: rename variable "size" to "list_size"
The new name is more meaningful/less confusing.
parent
3bee286a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
segment.c
libavformat/segment.c
+3
-3
No files found.
libavformat/segment.c
View file @
aa1cceb5
...
...
@@ -36,8 +36,8 @@ typedef struct {
AVFormatContext
*
avf
;
char
*
format
;
/**< Set by a private option. */
char
*
list
;
/**< Set by a private option. */
int
list_size
;
/**< Set by a private option. */
float
time
;
/**< Set by a private option. */
int
size
;
/**< Set by a private option. */
int
wrap
;
/**< Set by a private option. */
int64_t
offset_time
;
int64_t
recording_time
;
...
...
@@ -217,7 +217,7 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
seg
->
list
)
{
avio_printf
(
seg
->
pb
,
"%s
\n
"
,
oc
->
filename
);
avio_flush
(
seg
->
pb
);
if
(
seg
->
size
&&
!
(
seg
->
number
%
seg
->
size
))
{
if
(
seg
->
list_size
&&
!
(
seg
->
number
%
seg
->
list_
size
))
{
avio_close
(
seg
->
pb
);
if
((
ret
=
avio_open2
(
&
seg
->
pb
,
seg
->
list
,
AVIO_FLAG_WRITE
,
&
s
->
interrupt_callback
,
NULL
))
<
0
)
...
...
@@ -259,7 +259,7 @@ static const AVOption options[] = {
{
"segment_format"
,
"container format used for the segments"
,
OFFSET
(
format
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
E
},
{
"segment_time"
,
"segment length in seconds"
,
OFFSET
(
time
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
2
},
0
,
FLT_MAX
,
E
},
{
"segment_list"
,
"output the segment list"
,
OFFSET
(
list
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
E
},
{
"segment_list_size"
,
"maximum number of playlist entries"
,
OFFSET
(
size
),
AV_OPT_TYPE_INT
,
{.
dbl
=
5
},
0
,
INT_MAX
,
E
},
{
"segment_list_size"
,
"maximum number of playlist entries"
,
OFFSET
(
list_size
),
AV_OPT_TYPE_INT
,
{.
dbl
=
5
},
0
,
INT_MAX
,
E
},
{
"segment_wrap"
,
"number after which the index wraps"
,
OFFSET
(
wrap
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
E
},
{
NULL
},
};
...
...
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