Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
ffabff1b
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,发现更多精彩内容 >>
提交
ffabff1b
编写于
2月 03, 2018
作者:
M
Marton Balint
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avformat/concatdec: add support for very long line sizes
Fixes ticket #6761. Signed-off-by:
N
Marton Balint
<
cus@passwd.hu
>
上级
dcb2ef22
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
8 deletion
+11
-8
libavformat/concatdec.c
libavformat/concatdec.c
+11
-8
未找到文件。
libavformat/concatdec.c
浏览文件 @
ffabff1b
...
...
@@ -20,6 +20,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
...
...
@@ -386,18 +387,18 @@ static int concat_read_close(AVFormatContext *avf)
static
int
concat_read_header
(
AVFormatContext
*
avf
)
{
ConcatContext
*
cat
=
avf
->
priv_data
;
uint8_t
buf
[
4096
]
;
AVBPrint
bp
;
uint8_t
*
cursor
,
*
keyword
;
int
ret
,
line
=
0
,
i
;
int
line
=
0
,
i
;
unsigned
nb_files_alloc
=
0
;
ConcatFile
*
file
=
NULL
;
int64_t
time
=
0
;
int64_t
ret
,
time
=
0
;
while
(
1
)
{
if
((
ret
=
ff_get_line
(
avf
->
pb
,
buf
,
sizeof
(
buf
)))
<=
0
)
break
;
av_bprint_init
(
&
bp
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
while
((
ret
=
ff_read_line_to_bprint_overwrite
(
avf
->
pb
,
&
bp
))
>=
0
)
{
line
++
;
cursor
=
b
uf
;
cursor
=
b
p
.
str
;
keyword
=
get_keyword
(
&
cursor
);
if
(
!*
keyword
||
*
keyword
==
'#'
)
continue
;
...
...
@@ -473,7 +474,7 @@ static int concat_read_header(AVFormatContext *avf)
FAIL
(
AVERROR_INVALIDDATA
);
}
}
if
(
ret
<
0
)
if
(
ret
!=
AVERROR_EOF
&&
ret
<
0
)
goto
fail
;
if
(
!
cat
->
nb_files
)
FAIL
(
AVERROR_INVALIDDATA
);
...
...
@@ -499,9 +500,11 @@ static int concat_read_header(AVFormatContext *avf)
MATCH_ONE_TO_ONE
;
if
((
ret
=
open_file
(
avf
,
0
))
<
0
)
goto
fail
;
av_bprint_finalize
(
&
bp
,
NULL
);
return
0
;
fail:
av_bprint_finalize
(
&
bp
,
NULL
);
concat_read_close
(
avf
);
return
ret
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录