Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ec892563
Commit
ec892563
authored
Nov 19, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset ref_index
Originally committed as revision 3690 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e7316976
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
error_resilience.c
libavcodec/error_resilience.c
+7
-3
No files found.
libavcodec/error_resilience.c
View file @
ec892563
...
...
@@ -666,6 +666,8 @@ void ff_er_frame_end(MpegEncContext *s){
int
threshold_part
[
4
]
=
{
100
,
100
,
100
};
int
threshold
=
50
;
int
is_intra_likely
;
int
size
=
s
->
b8_stride
*
2
*
s
->
mb_height
;
Picture
*
pic
=
s
->
current_picture_ptr
;
if
(
!
s
->
error_resilience
||
s
->
error_count
==
0
||
s
->
error_count
==
3
*
s
->
mb_width
*
(
s
->
avctx
->
skip_top
+
s
->
avctx
->
skip_bottom
))
return
;
...
...
@@ -673,9 +675,6 @@ void ff_er_frame_end(MpegEncContext *s){
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"concealing %d errors
\n
"
,
s
->
error_count
);
if
(
s
->
current_picture
.
motion_val
[
0
]
==
NULL
){
int
size
=
s
->
b8_stride
*
2
*
s
->
mb_height
;
Picture
*
pic
=
s
->
current_picture_ptr
;
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Warning MVs not available
\n
"
);
for
(
i
=
0
;
i
<
2
;
i
++
){
...
...
@@ -687,6 +686,11 @@ void ff_er_frame_end(MpegEncContext *s){
s
->
current_picture
=
*
s
->
current_picture_ptr
;
}
for
(
i
=
0
;
i
<
2
;
i
++
){
if
(
pic
->
ref_index
[
i
])
memset
(
pic
->
ref_index
[
i
],
0
,
size
*
sizeof
(
uint8_t
));
}
if
(
s
->
avctx
->
debug
&
FF_DEBUG_ER
){
for
(
mb_y
=
0
;
mb_y
<
s
->
mb_height
;
mb_y
++
){
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment