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
eff2399f
Commit
eff2399f
authored
Mar 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "error_resilience: initialize s->block_index[]."
This reverts commit
6193ff68
. This change is unneeded.
parent
6df42f98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
error_resilience.c
libavcodec/error_resilience.c
+0
-20
No files found.
libavcodec/error_resilience.c
View file @
eff2399f
...
...
@@ -440,14 +440,9 @@ static void guess_mv(MpegEncContext *s)
if
((
!
(
s
->
avctx
->
error_concealment
&
FF_EC_GUESS_MVS
))
||
num_avail
<=
mb_width
/
2
)
{
for
(
mb_y
=
0
;
mb_y
<
s
->
mb_height
;
mb_y
++
)
{
s
->
mb_x
=
0
;
s
->
mb_y
=
mb_y
;
ff_init_block_index
(
s
);
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
)
{
const
int
mb_xy
=
mb_x
+
mb_y
*
s
->
mb_stride
;
ff_update_block_index
(
s
);
if
(
IS_INTRA
(
s
->
current_picture
.
f
.
mb_type
[
mb_xy
]))
continue
;
if
(
!
(
s
->
error_status_table
[
mb_xy
]
&
ER_MV_ERROR
))
...
...
@@ -482,9 +477,6 @@ static void guess_mv(MpegEncContext *s)
changed
=
0
;
for
(
mb_y
=
0
;
mb_y
<
s
->
mb_height
;
mb_y
++
)
{
s
->
mb_x
=
0
;
s
->
mb_y
=
mb_y
;
ff_init_block_index
(
s
);
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
)
{
const
int
mb_xy
=
mb_x
+
mb_y
*
s
->
mb_stride
;
int
mv_predictor
[
8
][
2
]
=
{
{
0
}
};
...
...
@@ -496,8 +488,6 @@ static void guess_mv(MpegEncContext *s)
const
int
mot_index
=
(
mb_x
+
mb_y
*
mot_stride
)
*
mot_step
;
int
prev_x
,
prev_y
,
prev_ref
;
ff_update_block_index
(
s
);
if
((
mb_x
^
mb_y
^
pass
)
&
1
)
continue
;
...
...
@@ -1108,16 +1098,11 @@ void ff_er_frame_end(MpegEncContext *s)
/* handle inter blocks with damaged AC */
for
(
mb_y
=
0
;
mb_y
<
s
->
mb_height
;
mb_y
++
)
{
s
->
mb_x
=
0
;
s
->
mb_y
=
mb_y
;
ff_init_block_index
(
s
);
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
)
{
const
int
mb_xy
=
mb_x
+
mb_y
*
s
->
mb_stride
;
const
int
mb_type
=
s
->
current_picture
.
f
.
mb_type
[
mb_xy
];
int
dir
=
!
s
->
last_picture
.
f
.
data
[
0
];
ff_update_block_index
(
s
);
error
=
s
->
error_status_table
[
mb_xy
];
if
(
IS_INTRA
(
mb_type
))
...
...
@@ -1155,16 +1140,11 @@ void ff_er_frame_end(MpegEncContext *s)
/* guess MVs */
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
)
{
for
(
mb_y
=
0
;
mb_y
<
s
->
mb_height
;
mb_y
++
)
{
s
->
mb_x
=
0
;
s
->
mb_y
=
mb_y
;
ff_init_block_index
(
s
);
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
)
{
int
xy
=
mb_x
*
2
+
mb_y
*
2
*
s
->
b8_stride
;
const
int
mb_xy
=
mb_x
+
mb_y
*
s
->
mb_stride
;
const
int
mb_type
=
s
->
current_picture
.
f
.
mb_type
[
mb_xy
];
ff_update_block_index
(
s
);
error
=
s
->
error_status_table
[
mb_xy
];
if
(
IS_INTRA
(
mb_type
))
...
...
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