Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
4f40d64e
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,发现更多精彩内容 >>
提交
4f40d64e
编写于
2月 23, 2018
作者:
A
Aman Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avformat/mpegts: set AV_DISPOSITION_DEPENDENT for mix_type=0 supplementary audio
Signed-off-by:
N
Aman Gupta
<
aman@tmm1.net
>
上级
61ecfbc3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
0 deletion
+7
-0
fftools/ffmpeg.c
fftools/ffmpeg.c
+1
-0
libavformat/avformat.h
libavformat/avformat.h
+1
-0
libavformat/dump.c
libavformat/dump.c
+2
-0
libavformat/mpegts.c
libavformat/mpegts.c
+3
-0
未找到文件。
fftools/ffmpeg.c
浏览文件 @
4f40d64e
...
...
@@ -3592,6 +3592,7 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len)
{
"clean_effects"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_DISPOSITION_CLEAN_EFFECTS
},
.
unit
=
"flags"
},
{
"captions"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_DISPOSITION_CAPTIONS
},
.
unit
=
"flags"
},
{
"descriptions"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_DISPOSITION_DESCRIPTIONS
},
.
unit
=
"flags"
},
{
"dependent"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_DISPOSITION_DEPENDENT
},
.
unit
=
"flags"
},
{
"metadata"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
AV_DISPOSITION_METADATA
},
.
unit
=
"flags"
},
{
NULL
},
};
...
...
libavformat/avformat.h
浏览文件 @
4f40d64e
...
...
@@ -845,6 +845,7 @@ typedef struct AVStreamInternal AVStreamInternal;
#define AV_DISPOSITION_CAPTIONS 0x10000
#define AV_DISPOSITION_DESCRIPTIONS 0x20000
#define AV_DISPOSITION_METADATA 0x40000
#define AV_DISPOSITION_DEPENDENT 0x80000 ///< dependent audio stream (mix_type=0 in mpegts)
/**
* Options for behavior on timestamp wrap detection.
...
...
libavformat/dump.c
浏览文件 @
4f40d64e
...
...
@@ -549,6 +549,8 @@ static void dump_stream_format(AVFormatContext *ic, int i,
av_log
(
NULL
,
AV_LOG_INFO
,
" (clean effects)"
);
if
(
st
->
disposition
&
AV_DISPOSITION_DESCRIPTIONS
)
av_log
(
NULL
,
AV_LOG_INFO
,
" (descriptions)"
);
if
(
st
->
disposition
&
AV_DISPOSITION_DEPENDENT
)
av_log
(
NULL
,
AV_LOG_INFO
,
" (dependent)"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
dump_metadata
(
NULL
,
st
->
metadata
,
" "
);
...
...
libavformat/mpegts.c
浏览文件 @
4f40d64e
...
...
@@ -1904,6 +1904,9 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
return
AVERROR_INVALIDDATA
;
flags
=
get8
(
pp
,
desc_end
);
if
((
flags
&
0x80
)
==
0
)
/* mix_type */
st
->
disposition
|=
AV_DISPOSITION_DEPENDENT
;
switch
((
flags
>>
2
)
&
0x1F
)
{
/* editorial_classification */
case
0x01
:
st
->
disposition
|=
AV_DISPOSITION_VISUAL_IMPAIRED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录