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
f71163d7
Commit
f71163d7
authored
Sep 16, 2007
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move av_exit() to before main()
Originally committed as revision 10510 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
47f93b61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
46 deletions
+44
-46
ffmpeg.c
ffmpeg.c
+44
-46
No files found.
ffmpeg.c
View file @
f71163d7
...
@@ -3789,52 +3789,6 @@ static void show_help(void)
...
@@ -3789,52 +3789,6 @@ static void show_help(void)
av_opt_show
(
sws_opts
,
NULL
);
av_opt_show
(
sws_opts
,
NULL
);
}
}
static
int
av_exit
();
int
main
(
int
argc
,
char
**
argv
)
{
int
i
;
int64_t
ti
;
av_register_all
();
for
(
i
=
0
;
i
<
CODEC_TYPE_NB
;
i
++
){
avctx_opts
[
i
]
=
avcodec_alloc_context2
(
i
);
}
avformat_opts
=
av_alloc_format_context
();
sws_opts
=
sws_getContext
(
16
,
16
,
0
,
16
,
16
,
0
,
sws_flags
,
NULL
,
NULL
,
NULL
);
show_banner
();
if
(
argc
<=
1
)
{
show_help
();
exit
(
1
);
}
/* parse options */
parse_options
(
argc
,
argv
,
options
,
opt_output_file
);
/* file converter / grab */
if
(
nb_output_files
<=
0
)
{
fprintf
(
stderr
,
"Must supply at least one output file
\n
"
);
exit
(
1
);
}
if
(
nb_input_files
==
0
)
{
fprintf
(
stderr
,
"Must supply at least one input file
\n
"
);
exit
(
1
);
}
ti
=
getutime
();
av_encode
(
output_files
,
nb_output_files
,
input_files
,
nb_input_files
,
stream_maps
,
nb_stream_maps
);
ti
=
getutime
()
-
ti
;
if
(
do_benchmark
)
{
printf
(
"bench: utime=%0.3fs
\n
"
,
ti
/
1000000
.
0
);
}
return
av_exit
();
}
static
int
av_exit
()
static
int
av_exit
()
{
{
int
i
;
int
i
;
...
@@ -3887,3 +3841,47 @@ static int av_exit()
...
@@ -3887,3 +3841,47 @@ static int av_exit()
exit
(
0
);
/* not all OS-es handle main() return value */
exit
(
0
);
/* not all OS-es handle main() return value */
return
0
;
return
0
;
}
}
int
main
(
int
argc
,
char
**
argv
)
{
int
i
;
int64_t
ti
;
av_register_all
();
for
(
i
=
0
;
i
<
CODEC_TYPE_NB
;
i
++
){
avctx_opts
[
i
]
=
avcodec_alloc_context2
(
i
);
}
avformat_opts
=
av_alloc_format_context
();
sws_opts
=
sws_getContext
(
16
,
16
,
0
,
16
,
16
,
0
,
sws_flags
,
NULL
,
NULL
,
NULL
);
show_banner
();
if
(
argc
<=
1
)
{
show_help
();
exit
(
1
);
}
/* parse options */
parse_options
(
argc
,
argv
,
options
,
opt_output_file
);
/* file converter / grab */
if
(
nb_output_files
<=
0
)
{
fprintf
(
stderr
,
"Must supply at least one output file
\n
"
);
exit
(
1
);
}
if
(
nb_input_files
==
0
)
{
fprintf
(
stderr
,
"Must supply at least one input file
\n
"
);
exit
(
1
);
}
ti
=
getutime
();
av_encode
(
output_files
,
nb_output_files
,
input_files
,
nb_input_files
,
stream_maps
,
nb_stream_maps
);
ti
=
getutime
()
-
ti
;
if
(
do_benchmark
)
{
printf
(
"bench: utime=%0.3fs
\n
"
,
ti
/
1000000
.
0
);
}
return
av_exit
();
}
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