Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
8be014e0
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,发现更多精彩内容 >>
提交
8be014e0
编写于
3月 13, 2004
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removing broken mpeg_decode_gop()
Originally committed as revision 2883 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
68951ecf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
32 deletion
+1
-32
libavcodec/mpeg12.c
libavcodec/mpeg12.c
+1
-32
未找到文件。
libavcodec/mpeg12.c
浏览文件 @
8be014e0
...
...
@@ -2586,37 +2586,6 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
}
}
static
void
mpeg_decode_gop
(
AVCodecContext
*
avctx
,
const
uint8_t
*
buf
,
int
buf_size
){
Mpeg1Context
*
s1
=
avctx
->
priv_data
;
MpegEncContext
*
s
=
&
s1
->
mpeg_enc_ctx
;
int
drop_frame_flag
;
int
time_code_hours
,
time_code_minutes
;
int
time_code_seconds
,
time_code_pictures
;
int
broken_link
;
s
->
first_field
=
0
;
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
*
8
);
drop_frame_flag
=
get_bits1
(
&
s
->
gb
);
time_code_hours
=
get_bits
(
&
s
->
gb
,
5
);
time_code_minutes
=
get_bits
(
&
s
->
gb
,
6
);
skip_bits1
(
&
s
->
gb
);
//marker bit
time_code_seconds
=
get_bits
(
&
s
->
gb
,
6
);
time_code_pictures
=
get_bits
(
&
s
->
gb
,
6
);
/*broken_link indicate that after editing the
reference frames of the first B-Frames after GOP I-Frame
are missing (open gop)*/
broken_link
=
get_bits1
(
&
s
->
gb
);
if
(
broken_link
==
1
){
// avcodec_flush_buffers(avctx);
ff_mpeg_flush
(
avctx
);
}
}
/**
* finds the end of the current frame in the bitstream.
* @return the position of the first byte of the next frame, or -1
...
...
@@ -2754,7 +2723,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx,
buf_ptr
,
input_size
);
break
;
case
GOP_START_CODE
:
mpeg_decode_gop
(
avctx
,
buf_ptr
,
input_size
)
;
s2
->
first_field
=
0
;
break
;
default:
if
(
start_code
>=
SLICE_MIN_START_CODE
&&
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录