Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
473a200d
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,发现更多精彩内容 >>
提交
473a200d
编写于
9月 01, 2005
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
error concealment fix
Originally committed as revision 4543 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
c619ff6d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
5 deletion
+13
-5
libavcodec/rv10.c
libavcodec/rv10.c
+13
-5
未找到文件。
libavcodec/rv10.c
浏览文件 @
473a200d
...
...
@@ -620,8 +620,14 @@ static int rv10_decode_packet(AVCodecContext *avctx,
//if(s->pict_type == P_TYPE) return 0;
if
((
s
->
mb_x
==
0
&&
s
->
mb_y
==
0
)
||
s
->
current_picture_ptr
==
NULL
)
{
if
(
s
->
current_picture_ptr
){
//FIXME write parser so we always have complete frames?
ff_er_frame_end
(
s
);
MPV_frame_end
(
s
);
s
->
mb_x
=
s
->
mb_y
=
s
->
resync_mb_x
=
s
->
resync_mb_y
=
0
;
}
if
(
MPV_frame_start
(
s
,
avctx
)
<
0
)
return
-
1
;
ff_er_frame_start
(
s
);
}
#ifdef DEBUG
...
...
@@ -673,7 +679,7 @@ static int rv10_decode_packet(AVCodecContext *avctx,
s
->
mv_type
=
MV_TYPE_16X16
;
ret
=
ff_h263_decode_mb
(
s
,
s
->
block
);
if
(
ret
==
SLICE_ERROR
)
{
if
(
ret
==
SLICE_ERROR
||
s
->
gb
.
size_in_bits
<
get_bits_count
(
&
s
->
gb
)
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"ERROR at MB %d %d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
return
-
1
;
}
...
...
@@ -693,6 +699,8 @@ static int rv10_decode_packet(AVCodecContext *avctx,
if
(
ret
==
SLICE_END
)
break
;
}
ff_er_add_slice
(
s
,
s
->
resync_mb_x
,
s
->
resync_mb_y
,
s
->
mb_x
-
1
,
s
->
mb_y
,
AC_END
|
DC_END
|
MV_END
);
return
buf_size
;
}
...
...
@@ -723,15 +731,14 @@ static int rv10_decode_frame(AVCodecContext *avctx,
else
size
=
avctx
->
slice_offset
[
i
+
1
]
-
offset
;
if
(
rv10_decode_packet
(
avctx
,
buf
+
offset
,
size
)
<
0
)
return
-
1
;
rv10_decode_packet
(
avctx
,
buf
+
offset
,
size
);
}
}
else
{
if
(
rv10_decode_packet
(
avctx
,
buf
,
buf_size
)
<
0
)
return
-
1
;
rv10_decode_packet
(
avctx
,
buf
,
buf_size
);
}
if
(
s
->
mb_y
>=
s
->
mb_height
){
ff_er_frame_end
(
s
);
MPV_frame_end
(
s
);
if
(
s
->
pict_type
==
B_TYPE
||
s
->
low_delay
){
...
...
@@ -743,6 +750,7 @@ static int rv10_decode_frame(AVCodecContext *avctx,
}
if
(
s
->
last_picture_ptr
||
s
->
low_delay
)
*
data_size
=
sizeof
(
AVFrame
);
s
->
current_picture_ptr
=
NULL
;
//so we can detect if frame_end wasnt called (find some nicer solution...)
}
return
buf_size
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录