Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
21732063
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,发现更多精彩内容 >>
提交
21732063
编写于
7月 07, 2013
作者:
M
Martin Storsjö
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
movenc: K&R formatting cosmetics
Signed-off-by:
N
Martin Storsjö
<
martin@martin.st
>
上级
38e9585d
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
198 addition
and
197 deletion
+198
-197
libavformat/movenc.c
libavformat/movenc.c
+189
-189
libavformat/movenchint.c
libavformat/movenchint.c
+9
-8
未找到文件。
libavformat/movenc.c
浏览文件 @
21732063
此差异已折叠。
点击以展开。
libavformat/movenchint.c
浏览文件 @
21732063
...
...
@@ -87,7 +87,7 @@ static void sample_queue_free(HintSampleQueue *queue)
if
(
queue
->
samples
[
i
].
own_data
)
av_free
(
queue
->
samples
[
i
].
data
);
av_freep
(
&
queue
->
samples
);
queue
->
len
=
0
;
queue
->
len
=
0
;
queue
->
size
=
0
;
}
...
...
@@ -104,7 +104,7 @@ static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size,
if
(
size
<=
14
)
return
;
if
(
!
queue
->
samples
||
queue
->
len
>=
queue
->
size
)
{
HintSample
*
samples
;
HintSample
*
samples
;
queue
->
size
+=
10
;
samples
=
av_realloc
(
queue
->
samples
,
sizeof
(
HintSample
)
*
queue
->
size
);
if
(
!
samples
)
...
...
@@ -114,7 +114,7 @@ static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size,
queue
->
samples
[
queue
->
len
].
data
=
data
;
queue
->
samples
[
queue
->
len
].
size
=
size
;
queue
->
samples
[
queue
->
len
].
sample_number
=
sample
;
queue
->
samples
[
queue
->
len
].
offset
=
0
;
queue
->
samples
[
queue
->
len
].
offset
=
0
;
queue
->
samples
[
queue
->
len
].
own_data
=
0
;
queue
->
len
++
;
}
...
...
@@ -128,7 +128,7 @@ static void sample_queue_retain(HintSampleQueue *queue)
for
(
i
=
0
;
i
<
queue
->
len
;
)
{
HintSample
*
sample
=
&
queue
->
samples
[
i
];
if
(
!
sample
->
own_data
)
{
uint8_t
*
ptr
=
av_malloc
(
sample
->
size
);
uint8_t
*
ptr
=
av_malloc
(
sample
->
size
);
if
(
!
ptr
)
{
/* Unable to allocate memory for this one, remove it */
memmove
(
queue
->
samples
+
i
,
queue
->
samples
+
i
+
1
,
...
...
@@ -344,7 +344,7 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data,
trk
->
max_packet_size
=
packet_len
;
seq
=
AV_RB16
(
&
data
[
2
]);
ts
=
AV_RB32
(
&
data
[
4
]);
ts
=
AV_RB32
(
&
data
[
4
]);
if
(
trk
->
prev_rtp_ts
==
0
)
trk
->
prev_rtp_ts
=
ts
;
...
...
@@ -417,7 +417,7 @@ int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
* for next time. */
size
=
avio_close_dyn_buf
(
rtp_ctx
->
pb
,
&
buf
);
if
((
ret
=
ffio_open_dyn_packet_buf
(
&
rtp_ctx
->
pb
,
RTP_MAX_PACKET_SIZE
))
<
0
)
RTP_MAX_PACKET_SIZE
))
<
0
)
goto
done
;
if
(
size
<=
0
)
...
...
@@ -445,8 +445,9 @@ done:
return
ret
;
}
void
ff_mov_close_hinting
(
MOVTrack
*
track
)
{
AVFormatContext
*
rtp_ctx
=
track
->
rtp_ctx
;
void
ff_mov_close_hinting
(
MOVTrack
*
track
)
{
AVFormatContext
*
rtp_ctx
=
track
->
rtp_ctx
;
uint8_t
*
ptr
;
av_freep
(
&
track
->
enc
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录