Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
f71163d7
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f71163d7
编写于
9月 16, 2007
作者:
R
Ramiro Polla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move av_exit() to before main()
Originally committed as revision 10510 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
47f93b61
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
44 addition
and
46 deletion
+44
-46
ffmpeg.c
ffmpeg.c
+44
-46
未找到文件。
ffmpeg.c
浏览文件 @
f71163d7
...
...
@@ -3789,52 +3789,6 @@ static void show_help(void)
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
()
{
int
i
;
...
...
@@ -3887,3 +3841,47 @@ static int av_exit()
exit
(
0
);
/* not all OS-es handle main() return value */
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
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录