Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
a1c5cc42
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,发现更多精彩内容 >>
提交
a1c5cc42
编写于
10月 27, 2013
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavc: don't set AVFrame.pts to random numbers in decoders.
上级
2ba68dd0
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
0 addition
and
10 deletion
+0
-10
libavcodec/h261dec.c
libavcodec/h261dec.c
+0
-1
libavcodec/ituh263dec.c
libavcodec/ituh263dec.c
+0
-1
libavcodec/mpeg4videodec.c
libavcodec/mpeg4videodec.c
+0
-8
未找到文件。
libavcodec/h261dec.c
浏览文件 @
a1c5cc42
...
...
@@ -476,7 +476,6 @@ static int h261_decode_picture_header(H261Context *h)
s
->
picture_number
=
(
s
->
picture_number
&
~
31
)
+
i
;
s
->
avctx
->
time_base
=
(
AVRational
)
{
1001
,
30000
};
s
->
current_picture
.
f
.
pts
=
s
->
picture_number
;
/* PTYPE starts here */
skip_bits1
(
&
s
->
gb
);
/* split screen off */
...
...
libavcodec/ituh263dec.c
浏览文件 @
a1c5cc42
...
...
@@ -885,7 +885,6 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
i
=
get_bits
(
&
s
->
gb
,
8
);
/* picture timestamp */
if
(
(
s
->
picture_number
&~
0xFF
)
+
i
<
s
->
picture_number
)
i
+=
256
;
s
->
current_picture_ptr
->
f
.
pts
=
s
->
picture_number
=
(
s
->
picture_number
&~
0xFF
)
+
i
;
/* PTYPE starts here */
...
...
libavcodec/mpeg4videodec.c
浏览文件 @
a1c5cc42
...
...
@@ -1965,14 +1965,6 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
}
}
if
(
s
->
avctx
->
time_base
.
num
)
s
->
current_picture_ptr
->
f
.
pts
=
(
s
->
time
+
s
->
avctx
->
time_base
.
num
/
2
)
/
s
->
avctx
->
time_base
.
num
;
else
s
->
current_picture_ptr
->
f
.
pts
=
AV_NOPTS_VALUE
;
if
(
s
->
avctx
->
debug
&
FF_DEBUG_PTS
)
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"MPEG4 PTS: %"
PRId64
"
\n
"
,
s
->
current_picture_ptr
->
f
.
pts
);
check_marker
(
gb
,
"before vop_coded"
);
/* vop coded */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录