Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
c3675dfe
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,发现更多精彩内容 >>
提交
c3675dfe
编写于
4月 08, 2011
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavf: rename avf_sdp_create to av_sdp_create.
The new name is more consistent with the rest of the API.
上级
a9bf9d8e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
7 deletion
+21
-7
ffmpeg.c
ffmpeg.c
+1
-1
ffserver.c
ffserver.c
+1
-1
libavformat/avformat.h
libavformat/avformat.h
+5
-1
libavformat/rtspenc.c
libavformat/rtspenc.c
+1
-1
libavformat/sapenc.c
libavformat/sapenc.c
+1
-1
libavformat/sdp.c
libavformat/sdp.c
+9
-2
libavformat/version.h
libavformat/version.h
+3
-0
未找到文件。
ffmpeg.c
浏览文件 @
c3675dfe
...
...
@@ -1797,7 +1797,7 @@ static void print_sdp(AVFormatContext **avc, int n)
{
char
sdp
[
2048
];
av
f
_sdp_create
(
avc
,
n
,
sdp
,
sizeof
(
sdp
));
av_sdp_create
(
avc
,
n
,
sdp
,
sizeof
(
sdp
));
printf
(
"SDP:
\n
%s
\n
"
,
sdp
);
fflush
(
stdout
);
}
...
...
ffserver.c
浏览文件 @
c3675dfe
...
...
@@ -2957,7 +2957,7 @@ static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer,
avc
->
streams
[
i
]
->
codec
=
stream
->
streams
[
i
]
->
codec
;
}
*
pbuffer
=
av_mallocz
(
2048
);
av
f
_sdp_create
(
&
avc
,
1
,
*
pbuffer
,
2048
);
av_sdp_create
(
&
avc
,
1
,
*
pbuffer
,
2048
);
sdp_done:
#if !FF_API_MAX_STREAMS
...
...
libavformat/avformat.h
浏览文件 @
c3675dfe
...
...
@@ -1558,7 +1558,11 @@ int av_filename_number_test(const char *filename);
* @param size the size of the buffer
* @return 0 if OK, AVERROR_xxx on error
*/
int
avf_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
);
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
);
#if FF_API_SDP_CREATE
attribute_deprecated
int
avf_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
);
#endif
/**
* Return a positive value if the given filename has one of the given
...
...
libavformat/rtspenc.c
浏览文件 @
c3675dfe
...
...
@@ -66,7 +66,7 @@ int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
ff_url_join
(
sdp_ctx
.
filename
,
sizeof
(
sdp_ctx
.
filename
),
"rtsp"
,
NULL
,
addr
,
-
1
,
NULL
);
ctx_array
[
0
]
=
&
sdp_ctx
;
if
(
av
f
_sdp_create
(
ctx_array
,
1
,
sdp
,
SDP_MAX_SIZE
))
{
if
(
av_sdp_create
(
ctx_array
,
1
,
sdp
,
SDP_MAX_SIZE
))
{
av_free
(
sdp
);
return
AVERROR_INVALIDDATA
;
}
...
...
libavformat/sapenc.c
浏览文件 @
c3675dfe
...
...
@@ -208,7 +208,7 @@ static int sap_write_header(AVFormatContext *s)
av_strlcpy
(
&
sap
->
ann
[
pos
],
"application/sdp"
,
sap
->
ann_size
-
pos
);
pos
+=
strlen
(
&
sap
->
ann
[
pos
])
+
1
;
if
(
av
f
_sdp_create
(
contexts
,
s
->
nb_streams
,
&
sap
->
ann
[
pos
],
if
(
av_sdp_create
(
contexts
,
s
->
nb_streams
,
&
sap
->
ann
[
pos
],
sap
->
ann_size
-
pos
))
{
ret
=
AVERROR_INVALIDDATA
;
goto
fail
;
...
...
libavformat/sdp.c
浏览文件 @
c3675dfe
...
...
@@ -474,7 +474,7 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
sdp_write_media_attributes
(
buff
,
size
,
c
,
payload_type
);
}
int
av
f
_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
)
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
)
{
AVMetadataTag
*
title
=
av_metadata_get
(
ac
[
0
]
->
metadata
,
"title"
,
NULL
,
0
);
struct
sdp_session_level
s
;
...
...
@@ -531,7 +531,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
return
0
;
}
#else
int
av
f
_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
)
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
)
{
return
AVERROR
(
ENOSYS
);
}
...
...
@@ -540,3 +540,10 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
{
}
#endif
#if FF_API_SDP_CREATE
int
avf_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
)
{
return
av_sdp_create
(
ac
,
n_files
,
buff
,
size
);
}
#endif
libavformat/version.h
浏览文件 @
c3675dfe
...
...
@@ -107,5 +107,8 @@
#ifndef FF_API_GUESS_IMG2_CODEC
#define FF_API_GUESS_IMG2_CODEC (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_SDP_CREATE
#define FF_API_SDP_CREATE (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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录