Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
0ac8e2bf
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,发现更多精彩内容 >>
提交
0ac8e2bf
编写于
2月 21, 2011
作者:
A
Anton Khirnov
提交者:
Ronald S. Bultje
2月 21, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avio: make put_nbyte internal.
Signed-off-by:
N
Ronald S. Bultje
<
rsbultje@gmail.com
>
上级
77eb5504
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
3 deletion
+9
-3
libavformat/avio.h
libavformat/avio.h
+1
-1
libavformat/avio_internal.h
libavformat/avio_internal.h
+2
-0
libavformat/aviobuf.c
libavformat/aviobuf.c
+5
-1
libavformat/spdifenc.c
libavformat/spdifenc.c
+1
-1
未找到文件。
libavformat/avio.h
浏览文件 @
0ac8e2bf
...
...
@@ -397,6 +397,7 @@ attribute_deprecated unsigned int get_be32(AVIOContext *s);
attribute_deprecated
uint64_t
get_be64
(
AVIOContext
*
s
);
attribute_deprecated
void
put_byte
(
AVIOContext
*
s
,
int
b
);
attribute_deprecated
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
);
attribute_deprecated
void
put_buffer
(
AVIOContext
*
s
,
const
unsigned
char
*
buf
,
int
size
);
attribute_deprecated
void
put_le64
(
AVIOContext
*
s
,
uint64_t
val
);
attribute_deprecated
void
put_be64
(
AVIOContext
*
s
,
uint64_t
val
);
...
...
@@ -421,7 +422,6 @@ AVIOContext *avio_alloc_context(
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
));
void
avio_w8
(
AVIOContext
*
s
,
int
b
);
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
);
void
avio_write
(
AVIOContext
*
s
,
const
unsigned
char
*
buf
,
int
size
);
void
avio_wl64
(
AVIOContext
*
s
,
uint64_t
val
);
void
avio_wb64
(
AVIOContext
*
s
,
uint64_t
val
);
...
...
libavformat/avio_internal.h
浏览文件 @
0ac8e2bf
...
...
@@ -40,4 +40,6 @@ int ffio_init_context(AVIOContext *s,
*/
int
ffio_read_partial
(
AVIOContext
*
s
,
unsigned
char
*
buf
,
int
size
);
void
ffio_fill
(
AVIOContext
*
s
,
int
b
,
int
count
);
#endif // AVFORMAT_AVIO_INTERNAL_H
libavformat/aviobuf.c
浏览文件 @
0ac8e2bf
...
...
@@ -141,7 +141,7 @@ void avio_w8(AVIOContext *s, int b)
flush_buffer
(
s
);
}
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
)
void
ffio_fill
(
AVIOContext
*
s
,
int
b
,
int
count
)
{
while
(
count
>
0
)
{
int
len
=
FFMIN
(
s
->
buf_end
-
s
->
buf_ptr
,
count
);
...
...
@@ -352,6 +352,10 @@ void put_buffer(AVIOContext *s, const unsigned char *buf, int size)
{
avio_write
(
s
,
buf
,
size
);
}
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
)
{
ffio_fill
(
s
,
b
,
count
);
}
#endif
int
avio_put_str
(
AVIOContext
*
s
,
const
char
*
str
)
...
...
libavformat/spdifenc.c
浏览文件 @
0ac8e2bf
...
...
@@ -525,7 +525,7 @@ static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt)
if
(
ctx
->
out_bytes
&
1
)
spdif_put_16
(
ctx
,
s
->
pb
,
ctx
->
out_buf
[
ctx
->
out_bytes
-
1
]
<<
8
);
put_nbyte
(
s
->
pb
,
0
,
padding
);
ffio_fill
(
s
->
pb
,
0
,
padding
);
av_log
(
s
,
AV_LOG_DEBUG
,
"type=%x len=%i pkt_offset=%i
\n
"
,
ctx
->
data_type
,
ctx
->
out_bytes
,
ctx
->
pkt_offset
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录