Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
055a6aa7
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,发现更多精彩内容 >>
提交
055a6aa7
编写于
2月 08, 2010
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Set x264_build so that checks are simpler.
Originally committed as revision 21681 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
3a06e864
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
libavcodec/h264.c
libavcodec/h264.c
+2
-1
libavcodec/h264_direct.c
libavcodec/h264_direct.c
+2
-2
未找到文件。
libavcodec/h264.c
浏览文件 @
055a6aa7
...
...
@@ -873,6 +873,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){
h
->
thread_context
[
0
]
=
h
;
h
->
outputed_poc
=
INT_MIN
;
h
->
prev_poc_msb
=
1
<<
16
;
h
->
x264_build
=
-
1
;
ff_h264_reset_sei
(
h
);
if
(
avctx
->
codec_id
==
CODEC_ID_H264
){
if
(
avctx
->
ticks_per_frame
==
1
){
...
...
@@ -1782,7 +1783,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
if
(
h
->
sps
.
timing_info_present_flag
){
int64_t
den
=
h
->
sps
.
time_scale
;
if
(
h
->
x264_build
>
0
&&
h
->
x264_build
<
44
)
if
(
h
->
x264_build
<
44U
)
den
*=
2
;
av_reduce
(
&
s
->
avctx
->
time_base
.
num
,
&
s
->
avctx
->
time_base
.
den
,
h
->
sps
.
num_units_in_tick
,
den
,
1
<<
30
);
...
...
libavcodec/h264_direct.c
浏览文件 @
055a6aa7
...
...
@@ -286,7 +286,7 @@ single_col:
if
(
!
IS_INTRA
(
mb_type_col
[
0
])
&&
!
h
->
ref_list
[
1
][
0
].
long_ref
&&
(
(
l1ref0
[
0
]
==
0
&&
FFABS
(
l1mv0
[
0
][
0
])
<=
1
&&
FFABS
(
l1mv0
[
0
][
1
])
<=
1
)
||
(
l1ref0
[
0
]
<
0
&&
l1ref1
[
0
]
==
0
&&
FFABS
(
l1mv1
[
0
][
0
])
<=
1
&&
FFABS
(
l1mv1
[
0
][
1
])
<=
1
&&
(
h
->
x264_build
>
33
||
!
h
->
x264_build
)
))){
&&
h
->
x264_build
>
33U
))){
a
=
b
=
0
;
if
(
ref
[
0
]
>
0
)
a
=
pack16to32
(
mv
[
0
][
0
],
mv
[
0
][
1
]);
...
...
@@ -315,7 +315,7 @@ single_col:
/* col_zero_flag */
if
(
!
IS_INTRA
(
mb_type_col
[
0
])
&&
!
h
->
ref_list
[
1
][
0
].
long_ref
&&
(
l1ref0
[
x8
+
y8
*
b8_stride
]
==
0
||
(
l1ref0
[
x8
+
y8
*
b8_stride
]
<
0
&&
l1ref1
[
x8
+
y8
*
b8_stride
]
==
0
&&
(
h
->
x264_build
>
33
||
!
h
->
x264_build
)
))){
&&
h
->
x264_build
>
33U
))){
const
int16_t
(
*
l1mv
)[
2
]
=
l1ref0
[
x8
+
y8
*
b8_stride
]
==
0
?
l1mv0
:
l1mv1
;
if
(
IS_SUB_8X8
(
sub_mb_type
)){
const
int16_t
*
mv_col
=
l1mv
[
x8
*
3
+
y8
*
3
*
b4_stride
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录