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
eb607621
Commit
eb607621
authored
Sep 24, 2020
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add init_variables to be able to run main multiple times
parent
1bc6c17f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ffmpeg.c
fftools/ffmpeg.c
+13
-0
No files found.
fftools/ffmpeg.c
View file @
eb607621
...
...
@@ -4816,11 +4816,24 @@ static void log_callback_null(void *ptr, int level, const char *fmt, va_list vl)
{
}
/*
* ffmpeg.wasm: initialize variables for a new run
*/
static
void
init_variables
()
{
nb_input_streams
=
0
;
nb_input_files
=
0
;
nb_output_streams
=
0
;
nb_output_files
=
0
;
nb_filtergraphs
=
0
;
ffmpeg_exited
=
0
;
}
int
main
(
int
argc
,
char
**
argv
)
{
int
i
,
ret
;
BenchmarkTimeStamps
ti
;
init_variables
();
init_dynload
();
register_exit
(
ffmpeg_cleanup
);
...
...
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