Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
34cba655
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,发现更多精彩内容 >>
提交
34cba655
编写于
10月 25, 2018
作者:
Z
Zhong Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavc/qsvenc: remove redundant code
Signed-off-by:
N
Zhong Li
<
zhong.li@intel.com
>
上级
b44a571d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
8 deletion
+5
-8
libavcodec/qsvenc.c
libavcodec/qsvenc.c
+5
-8
未找到文件。
libavcodec/qsvenc.c
浏览文件 @
34cba655
...
...
@@ -444,6 +444,7 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q)
const
AVPixFmtDescriptor
*
desc
;
float
quant
;
int
ret
;
mfxVersion
ver
;
ret
=
ff_qsv_codec_id_to_mfx
(
avctx
->
codec_id
);
if
(
ret
<
0
)
...
...
@@ -611,8 +612,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
q
->
extparam_internal
[
q
->
nb_extparam_internal
++
]
=
(
mfxExtBuffer
*
)
&
q
->
extco
;
#if QSV_HAVE_CO2
if
(
avctx
->
codec_id
==
AV_CODEC_ID_H264
)
{
#if QSV_HAVE_CO2
q
->
extco2
.
Header
.
BufferId
=
MFX_EXTBUFF_CODING_OPTION2
;
q
->
extco2
.
Header
.
BufferSz
=
sizeof
(
q
->
extco2
);
...
...
@@ -641,11 +642,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
q
->
extco2
.
Trellis
=
q
->
trellis
;
#endif
#if QSV_
HAVE_LA_DS
#if QSV_
VERSION_ATLEAST(1, 8)
q
->
extco2
.
LookAheadDS
=
q
->
look_ahead_downsampling
;
#endif
#if QSV_HAVE_BREF_TYPE
#if FF_API_PRIVATE_OPT
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
b_frame_strategy
>=
0
)
...
...
@@ -675,11 +674,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
#endif
q
->
extparam_internal
[
q
->
nb_extparam_internal
++
]
=
(
mfxExtBuffer
*
)
&
q
->
extco2
;
}
#endif
#if QSV_HAVE_MF
if
(
avctx
->
codec_id
==
AV_CODEC_ID_H264
)
{
mfxVersion
ver
;
ret
=
MFXQueryVersion
(
q
->
session
,
&
ver
);
if
(
ret
>=
MFX_ERR_NONE
&&
QSV_RUNTIME_VERSION_ATLEAST
(
ver
,
1
,
25
))
{
q
->
extmfp
.
Header
.
BufferId
=
MFX_EXTBUFF_MULTI_FRAME_PARAM
;
...
...
@@ -689,8 +686,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_log
(
avctx
,
AV_LOG_VERBOSE
,
"MFMode:%d
\n
"
,
q
->
extmfp
.
MFMode
);
q
->
extparam_internal
[
q
->
nb_extparam_internal
++
]
=
(
mfxExtBuffer
*
)
&
q
->
extmfp
;
}
}
#endif
}
}
if
(
!
check_enc_param
(
avctx
,
q
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录