Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
d338abb6
F
FFmpeg
项目概览
云duo
/
FFmpeg
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FFmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d338abb6
编写于
5月 14, 2016
作者:
A
Alexandra Hájková
提交者:
Anton Khirnov
5月 16, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mpeg4videodec: Call av_log() in check_marker() with AVCodecContext instead of NULL
Signed-off-by:
N
Anton Khirnov
<
anton@khirnov.net
>
上级
e4b38878
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
libavcodec/mpeg4videodec.c
libavcodec/mpeg4videodec.c
+10
-10
未找到文件。
libavcodec/mpeg4videodec.c
浏览文件 @
d338abb6
...
...
@@ -51,11 +51,11 @@ static const int mb_type_b_map[4] = {
MB_TYPE_L0
|
MB_TYPE_16x16
,
};
static
inline
int
check_marker
(
GetBitContext
*
s
,
const
char
*
msg
)
static
inline
int
check_marker
(
AVCodecContext
*
avctx
,
GetBitContext
*
s
,
const
char
*
msg
)
{
int
bit
=
get_bits1
(
s
);
if
(
!
bit
)
av_log
(
NULL
,
AV_LOG_INFO
,
"Marker bit missing %s
\n
"
,
msg
);
av_log
(
avctx
,
AV_LOG_INFO
,
"Marker bit missing %s
\n
"
,
msg
);
return
bit
;
}
...
...
@@ -446,9 +446,9 @@ int ff_mpeg4_decode_video_packet_header(Mpeg4DecContext *ctx)
while
(
get_bits1
(
&
s
->
gb
)
!=
0
)
time_incr
++
;
check_marker
(
&
s
->
gb
,
"before time_increment in video packed header"
);
check_marker
(
s
->
avctx
,
&
s
->
gb
,
"before time_increment in video packed header"
);
skip_bits
(
&
s
->
gb
,
ctx
->
time_increment_bits
);
/* time_increment */
check_marker
(
&
s
->
gb
,
"before vop_coding_type in video packed header"
);
check_marker
(
s
->
avctx
,
&
s
->
gb
,
"before vop_coding_type in video packed header"
);
skip_bits
(
&
s
->
gb
,
2
);
/* vop coding type */
// FIXME not rect stuff here
...
...
@@ -1731,7 +1731,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
skip_bits
(
gb
,
4
);
/* video_object_layer_shape_extension */
}
check_marker
(
gb
,
"before time_increment_resolution"
);
check_marker
(
s
->
avctx
,
gb
,
"before time_increment_resolution"
);
s
->
avctx
->
framerate
.
num
=
get_bits
(
gb
,
16
);
if
(
!
s
->
avctx
->
framerate
.
num
)
{
...
...
@@ -1743,7 +1743,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
if
(
ctx
->
time_increment_bits
<
1
)
ctx
->
time_increment_bits
=
1
;
check_marker
(
gb
,
"before fixed_vop_rate"
);
check_marker
(
s
->
avctx
,
gb
,
"before fixed_vop_rate"
);
if
(
get_bits1
(
gb
)
!=
0
)
/* fixed_vop_rate */
s
->
avctx
->
framerate
.
den
=
get_bits
(
gb
,
ctx
->
time_increment_bits
);
...
...
@@ -1909,7 +1909,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx
->
cplx_estimation_trash_p
+=
8
*
get_bits1
(
gb
);
/* inter4v_blocks */
ctx
->
cplx_estimation_trash_i
+=
8
*
get_bits1
(
gb
);
/* not coded blocks */
}
if
(
!
check_marker
(
gb
,
"in complexity estimation part 1"
))
{
if
(
!
check_marker
(
s
->
avctx
,
gb
,
"in complexity estimation part 1"
))
{
skip_bits_long
(
gb
,
pos
-
get_bits_count
(
gb
));
goto
no_cplx_est
;
}
...
...
@@ -1927,7 +1927,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
ctx
->
cplx_estimation_trash_p
+=
8
*
get_bits1
(
gb
);
/* halfpel2 */
ctx
->
cplx_estimation_trash_p
+=
8
*
get_bits1
(
gb
);
/* halfpel4 */
}
if
(
!
check_marker
(
gb
,
"in complexity estimation part 2"
))
{
if
(
!
check_marker
(
s
->
avctx
,
gb
,
"in complexity estimation part 2"
))
{
skip_bits_long
(
gb
,
pos
-
get_bits_count
(
gb
));
goto
no_cplx_est
;
}
...
...
@@ -2104,7 +2104,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
while
(
get_bits1
(
gb
)
!=
0
)
time_incr
++
;
check_marker
(
gb
,
"before time_increment"
);
check_marker
(
s
->
avctx
,
gb
,
"before time_increment"
);
if
(
ctx
->
time_increment_bits
==
0
||
!
(
show_bits
(
gb
,
ctx
->
time_increment_bits
+
1
)
&
1
))
{
...
...
@@ -2166,7 +2166,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
}
}
check_marker
(
gb
,
"before vop_coded"
);
check_marker
(
s
->
avctx
,
gb
,
"before vop_coded"
);
/* vop coded */
if
(
get_bits1
(
gb
)
!=
1
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录