Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_25606643
ijkplayer
提交
0772d57c
I
ijkplayer
项目概览
qq_25606643
/
ijkplayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
ijkplayer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0772d57c
编写于
6月 29, 2015
作者:
Z
Zhang Rui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ios/VideoToolbox: simplify context init
上级
2ca8b42a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
15 deletion
+13
-15
ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.h
...aPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.h
+12
-1
ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.m
...aPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.m
+1
-14
未找到文件。
ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.h
浏览文件 @
0772d57c
...
...
@@ -33,6 +33,7 @@
#define MAX_PKT_QUEUE_DEEP 350
#define MAX_DECODING_SAMPLES 16
typedef
struct
VTBPicture
{
double
pts
;
...
...
@@ -44,6 +45,13 @@ typedef struct VTBPicture {
}
VTBPicture
;
typedef
struct
sample_info
{
double
dts
;
double
pts
;
int
serial
;
}
sample_info
;
typedef
struct
sort_queue
{
double
dts
;
double
pts
;
...
...
@@ -82,6 +90,9 @@ typedef struct VideoToolBoxContext {
bool
dealloced
;
int
m_buffer_deep
;
AVPacket
m_buffer_packet
[
MAX_PKT_QUEUE_DEEP
];
sample_info
sample_info_array
[
MAX_DECODING_SAMPLES
];
int
sample_info_index
;
}
VideoToolBoxContext
;
...
...
ios/IJKMediaPlayer/IJKMediaPlayer/ijkmedia/ijkplayer/ios/pipeline/IJKVideoToolBox.m
浏览文件 @
0772d57c
...
...
@@ -733,26 +733,13 @@ VideoToolBoxContext* init_videotoolbox(FFPlayer* ffp, AVCodecContext* ic)
int
codec
=
ic
->
codec_id
;
uint8_t
*
extradata
=
ic
->
extradata
;
VideoToolBoxContext
*
context_vtb
=
malloc
(
sizeof
(
VideoToolBoxContext
));
VideoToolBoxContext
*
context_vtb
=
(
VideoToolBoxContext
*
)
mallocz
(
sizeof
(
VideoToolBoxContext
));
if
(
!
context_vtb
)
{
goto
failed
;
}
context_vtb
->
m_convert_bytestream
=
false
;
context_vtb
->
m_convert_3byteTo4byteNALSize
=
false
;
context_vtb
->
refresh_request
=
false
;
context_vtb
->
new_seg_flag
=
false
;
context_vtb
->
recovery_drop_packet
=
false
;
context_vtb
->
refresh_session
=
false
;
context_vtb
->
idr_based_identified
=
true
;
context_vtb
->
dealloced
=
false
;
context_vtb
->
last_keyframe_pts
=
0
;
context_vtb
->
m_max_ref_frames
=
0
;
context_vtb
->
ffp
=
ffp
;
context_vtb
->
serial
=
0
;
context_vtb
->
last_sort
=
0
;
context_vtb
->
m_buffer_deep
=
0
;
memset
(
context_vtb
->
m_buffer_packet
,
0
,
sizeof
(
context_vtb
->
m_buffer_packet
));
switch
(
profile
)
{
case
FF_PROFILE_H264_HIGH_10
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录