Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
8c2aa45d
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,发现更多精彩内容 >>
提交
8c2aa45d
编写于
3月 27, 2017
作者:
R
Ronald S. Bultje
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
h264: revert
1189af42
.
The patch introduces race conditions.
上级
0c466417
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
35 deletion
+0
-35
libavcodec/h264_slice.c
libavcodec/h264_slice.c
+0
-3
libavcodec/h264dec.c
libavcodec/h264dec.c
+0
-24
libavcodec/h264dec.h
libavcodec/h264dec.h
+0
-8
未找到文件。
libavcodec/h264_slice.c
浏览文件 @
8c2aa45d
...
...
@@ -383,9 +383,6 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
h
->
picture_structure
=
h1
->
picture_structure
;
h
->
mb_aff_frame
=
h1
->
mb_aff_frame
;
h
->
droppable
=
h1
->
droppable
;
h
->
backup_width
=
h1
->
backup_width
;
h
->
backup_height
=
h1
->
backup_height
;
h
->
backup_pix_fmt
=
h1
->
backup_pix_fmt
;
for
(
i
=
0
;
i
<
H264_MAX_PICTURE_COUNT
;
i
++
)
{
ff_h264_unref_picture
(
h
,
&
h
->
DPB
[
i
]);
...
...
libavcodec/h264dec.c
浏览文件 @
8c2aa45d
...
...
@@ -307,9 +307,6 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
int
i
;
h
->
avctx
=
avctx
;
h
->
backup_width
=
-
1
;
h
->
backup_height
=
-
1
;
h
->
backup_pix_fmt
=
AV_PIX_FMT_NONE
;
h
->
cur_chroma_format_idc
=
-
1
;
h
->
picture_structure
=
PICT_FRAME
;
...
...
@@ -861,14 +858,6 @@ static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp)
av_dict_set
(
&
dst
->
metadata
,
"stereo_mode"
,
ff_h264_sei_stereo_mode
(
&
h
->
sei
.
frame_packing
),
0
);
h
->
backup_width
=
h
->
avctx
->
width
;
h
->
backup_height
=
h
->
avctx
->
height
;
h
->
backup_pix_fmt
=
h
->
avctx
->
pix_fmt
;
h
->
avctx
->
width
=
dst
->
width
;
h
->
avctx
->
height
=
dst
->
height
;
h
->
avctx
->
pix_fmt
=
dst
->
format
;
if
(
srcp
->
sei_recovery_frame_cnt
==
0
)
dst
->
key_frame
=
1
;
if
(
!
srcp
->
crop
)
...
...
@@ -1003,19 +992,6 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
h
->
setup_finished
=
0
;
h
->
nb_slice_ctx_queued
=
0
;
if
(
h
->
backup_width
!=
-
1
)
{
avctx
->
width
=
h
->
backup_width
;
h
->
backup_width
=
-
1
;
}
if
(
h
->
backup_height
!=
-
1
)
{
avctx
->
height
=
h
->
backup_height
;
h
->
backup_height
=
-
1
;
}
if
(
h
->
backup_pix_fmt
!=
AV_PIX_FMT_NONE
)
{
avctx
->
pix_fmt
=
h
->
backup_pix_fmt
;
h
->
backup_pix_fmt
=
AV_PIX_FMT_NONE
;
}
ff_h264_unref_picture
(
h
,
&
h
->
last_pic_for_ec
);
/* end of stream, output what is still in the buffers */
...
...
libavcodec/h264dec.h
浏览文件 @
8c2aa45d
...
...
@@ -363,14 +363,6 @@ typedef struct H264Context {
int
width
,
height
;
int
chroma_x_shift
,
chroma_y_shift
;
/**
* Backup frame properties: needed, because they can be different
* between returned frame and last decoded frame.
**/
int
backup_width
;
int
backup_height
;
enum
AVPixelFormat
backup_pix_fmt
;
int
droppable
;
int
coded_picture_number
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录