Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
610219a5
F
FFmpeg
项目概览
云duo
/
FFmpeg
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FFmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
610219a5
编写于
2月 16, 2011
作者:
A
Anton Khirnov
提交者:
Mans Rullgard
2月 16, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavf: add av_ prefix to dump_format()
Signed-off-by:
N
Mans Rullgard
<
mans@mansr.com
>
上级
2c35a6bd
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
33 addition
and
13 deletion
+33
-13
ffmpeg.c
ffmpeg.c
+5
-5
ffplay.c
ffplay.c
+1
-1
ffprobe.c
ffprobe.c
+1
-1
libavformat/avformat.h
libavformat/avformat.h
+11
-4
libavformat/movenchint.c
libavformat/movenchint.c
+1
-1
libavformat/output-example.c
libavformat/output-example.c
+1
-1
libavformat/utils.c
libavformat/utils.c
+10
-0
libavformat/version.h
libavformat/version.h
+3
-0
未找到文件。
ffmpeg.c
浏览文件 @
610219a5
...
...
@@ -1977,7 +1977,7 @@ static int transcode(AVFormatContext **output_files,
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
os
=
output_files
[
i
];
if
(
!
os
->
nb_streams
&&
!
(
os
->
oformat
->
flags
&
AVFMT_NOSTREAMS
))
{
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
av_
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
fprintf
(
stderr
,
"Output file #%d does not contain any stream
\n
"
,
i
);
ret
=
AVERROR
(
EINVAL
);
goto
fail
;
...
...
@@ -2028,7 +2028,7 @@ static int transcode(AVFormatContext **output_files,
/* Sanity check that the stream types match */
if
(
ist_table
[
ost
->
source_index
]
->
st
->
codec
->
codec_type
!=
ost
->
st
->
codec
->
codec_type
)
{
int
i
=
ost
->
file_index
;
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
av_
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
fprintf
(
stderr
,
"Codec type mismatch for mapping #%d.%d -> #%d.%d
\n
"
,
stream_maps
[
n
].
file_index
,
stream_maps
[
n
].
stream_index
,
ost
->
file_index
,
ost
->
index
);
...
...
@@ -2079,7 +2079,7 @@ static int transcode(AVFormatContext **output_files,
}
if
(
!
found
)
{
int
i
=
ost
->
file_index
;
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
av_
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
fprintf
(
stderr
,
"Could not find input stream matching output stream #%d.%d
\n
"
,
ost
->
file_index
,
ost
->
index
);
ffmpeg_exit
(
1
);
...
...
@@ -2459,7 +2459,7 @@ static int transcode(AVFormatContext **output_files,
/* dump the file output parameters - cannot be done before in case
of stream copy */
for
(
i
=
0
;
i
<
nb_output_files
;
i
++
)
{
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
av_
dump_format
(
output_files
[
i
],
i
,
output_files
[
i
]
->
filename
,
1
);
}
/* dump the stream mapping */
...
...
@@ -3309,7 +3309,7 @@ static void opt_input_file(const char *filename)
input_files_ts_offset
[
nb_input_files
]
=
input_ts_offset
-
(
copy_ts
?
0
:
timestamp
);
/* dump the file content */
if
(
verbose
>=
0
)
dump_format
(
ic
,
nb_input_files
,
filename
,
0
);
av_
dump_format
(
ic
,
nb_input_files
,
filename
,
0
);
nb_input_files
++
;
...
...
ffplay.c
浏览文件 @
610219a5
...
...
@@ -2464,7 +2464,7 @@ static int decode_thread(void *arg)
st_index
[
AVMEDIA_TYPE_VIDEO
]),
NULL
,
0
);
if
(
show_status
)
{
dump_format
(
ic
,
0
,
is
->
filename
,
0
);
av_
dump_format
(
ic
,
0
,
is
->
filename
,
0
);
}
/* open the streams */
...
...
ffprobe.c
浏览文件 @
610219a5
...
...
@@ -277,7 +277,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
return
err
;
}
dump_format
(
fmt_ctx
,
0
,
filename
,
0
);
av_
dump_format
(
fmt_ctx
,
0
,
filename
,
0
);
/* bind a decoder to each input stream */
for
(
i
=
0
;
i
<
fmt_ctx
->
nb_streams
;
i
++
)
{
...
...
libavformat/avformat.h
浏览文件 @
610219a5
...
...
@@ -1450,10 +1450,17 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out,
*/
int
av_write_trailer
(
AVFormatContext
*
s
);
void
dump_format
(
AVFormatContext
*
ic
,
int
index
,
const
char
*
url
,
int
is_output
);
#if FF_API_DUMP_FORMAT
attribute_deprecated
void
dump_format
(
AVFormatContext
*
ic
,
int
index
,
const
char
*
url
,
int
is_output
);
#endif
void
av_dump_format
(
AVFormatContext
*
ic
,
int
index
,
const
char
*
url
,
int
is_output
);
#if FF_API_PARSE_FRAME_PARAM
/**
...
...
libavformat/movenchint.c
浏览文件 @
610219a5
...
...
@@ -57,7 +57,7 @@ fail:
av_log
(
s
,
AV_LOG_WARNING
,
"Unable to initialize hinting of stream %d
\n
"
,
src_index
);
av_freep
(
&
track
->
enc
);
/* Set a default timescale, to avoid crashes in dump_format */
/* Set a default timescale, to avoid crashes in
av_
dump_format */
track
->
timescale
=
90000
;
return
ret
;
}
...
...
libavformat/output-example.c
浏览文件 @
610219a5
...
...
@@ -481,7 +481,7 @@ int main(int argc, char **argv)
exit
(
1
);
}
dump_format
(
oc
,
0
,
filename
,
1
);
av_
dump_format
(
oc
,
0
,
filename
,
1
);
/* now that all the parameters are set, we can open the audio and
video codecs and allocate the necessary encode buffers */
...
...
libavformat/utils.c
浏览文件 @
610219a5
...
...
@@ -3261,10 +3261,20 @@ static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_out
dump_metadata
(
NULL
,
st
->
metadata
,
" "
);
}
#if FF_API_DUMP_FORMAT
void
dump_format
(
AVFormatContext
*
ic
,
int
index
,
const
char
*
url
,
int
is_output
)
{
av_dump_format
(
ic
,
index
,
url
,
is_output
);
}
#endif
void
av_dump_format
(
AVFormatContext
*
ic
,
int
index
,
const
char
*
url
,
int
is_output
)
{
int
i
;
uint8_t
*
printed
=
av_mallocz
(
ic
->
nb_streams
);
...
...
libavformat/version.h
浏览文件 @
610219a5
...
...
@@ -92,5 +92,8 @@
#ifndef FF_API_INDEX_BUILT
#define FF_API_INDEX_BUILT (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_DUMP_FORMAT
#define FF_API_DUMP_FORMAT (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#endif //AVFORMAT_VERSION_H
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录