Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a10d2ba0
提交
a10d2ba0
authored
2月 09, 2017
作者:
Seven Du
提交者:
Mike Jerris
2月 09, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9137 update to openh264 release 1.6.0
上级
7f436e29
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
5 行删除
+3
-5
mod_openh264.cpp
src/mod/codecs/mod_openh264/mod_openh264.cpp
+3
-5
没有找到文件。
src/mod/codecs/mod_openh264/mod_openh264.cpp
浏览文件 @
a10d2ba0
/*
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-201
6
, Anthony Minessale II <anthm@freeswitch.org>
* Copyright (C) 2005-201
7
, Anthony Minessale II <anthm@freeswitch.org>
*
*
* Version: MPL 1.1
* Version: MPL 1.1
*
*
...
@@ -150,8 +150,8 @@ int FillSpecificParameters(h264_codec_context_t *context) {
...
@@ -150,8 +150,8 @@ int FillSpecificParameters(h264_codec_context_t *context) {
param
->
iMaxBitrate
=
UNSPECIFIED_BIT_RATE
;
param
->
iMaxBitrate
=
UNSPECIFIED_BIT_RATE
;
#ifdef MT_ENABLED
#ifdef MT_ENABLED
param
->
sSpatialLayers
[
iIndexLayer
].
sSlice
Cfg
.
uiSliceMode
=
SM_DYN
_SLICE
;
param
->
sSpatialLayers
[
iIndexLayer
].
sSlice
Argument
.
uiSliceMode
=
SM_SIZELIMITED
_SLICE
;
param
->
sSpatialLayers
[
iIndexLayer
].
sSlice
Cfg
.
sSlice
Argument
.
uiSliceSizeConstraint
=
SLICE_SIZE
;
param
->
sSpatialLayers
[
iIndexLayer
].
sSliceArgument
.
uiSliceSizeConstraint
=
SLICE_SIZE
;
param
->
uiMaxNalSize
=
SLICE_SIZE
+
NAL_HEADER_ADD_0X30BYTES
;
param
->
uiMaxNalSize
=
SLICE_SIZE
+
NAL_HEADER_ADD_0X30BYTES
;
#else
#else
param
->
sSpatialLayers
[
iIndexLayer
].
sSliceCfg
.
uiSliceMode
=
SM_SINGLE_SLICE
;
param
->
sSpatialLayers
[
iIndexLayer
].
sSliceCfg
.
uiSliceMode
=
SM_SINGLE_SLICE
;
...
@@ -175,7 +175,6 @@ long set_decoder_options(ISVCDecoder *decoder)
...
@@ -175,7 +175,6 @@ long set_decoder_options(ISVCDecoder *decoder)
// EBufferProperty eOutputProperty = BUFFER_HOST;
// EBufferProperty eOutputProperty = BUFFER_HOST;
long
ret
=
0
;
long
ret
=
0
;
ret
+=
decoder
->
SetOption
(
DECODER_OPTION_DATAFORMAT
,
&
iColorFormat
);
// ret += decoder->SetOption(DECODER_OPTION_OUTPUT_PROPERTY, &eOutputProperty);
// ret += decoder->SetOption(DECODER_OPTION_OUTPUT_PROPERTY, &eOutputProperty);
return
ret
;
return
ret
;
...
@@ -458,7 +457,6 @@ static switch_status_t switch_h264_init(switch_codec_t *codec, switch_codec_flag
...
@@ -458,7 +457,6 @@ static switch_status_t switch_h264_init(switch_codec_t *codec, switch_codec_flag
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
}
context
->
decoder_params
.
eOutputColorFormat
=
videoFormatI420
;
context
->
decoder_params
.
uiTargetDqLayer
=
(
uint8_t
)
-
1
;
context
->
decoder_params
.
uiTargetDqLayer
=
(
uint8_t
)
-
1
;
context
->
decoder_params
.
eEcActiveIdc
=
ERROR_CON_SLICE_COPY
;
context
->
decoder_params
.
eEcActiveIdc
=
ERROR_CON_SLICE_COPY
;
context
->
decoder_params
.
sVideoProperty
.
eVideoBsType
=
VIDEO_BITSTREAM_AVC
;
context
->
decoder_params
.
sVideoProperty
.
eVideoBsType
=
VIDEO_BITSTREAM_AVC
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论