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
b7c2358f
Commit
b7c2358f
authored
Apr 19, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error_concealment: switch asserts mostly to av_asserts.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5e59a77c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
error_resilience.c
libavcodec/error_resilience.c
+4
-4
No files found.
libavcodec/error_resilience.c
View file @
b7c2358f
...
...
@@ -53,7 +53,7 @@ static void decode_mb(MpegEncContext *s, int ref)
H264Context
*
h
=
(
void
*
)
s
;
h
->
mb_xy
=
s
->
mb_x
+
s
->
mb_y
*
s
->
mb_stride
;
memset
(
h
->
non_zero_count_cache
,
0
,
sizeof
(
h
->
non_zero_count_cache
));
a
ssert
(
ref
>=
0
);
a
v_assert1
(
ref
>=
0
);
/* FIXME: It is possible albeit uncommon that slice references
* differ between slices. We take the easy approach and ignore
* it for now. If this turns out to have any relevance in
...
...
@@ -81,7 +81,7 @@ static void set_mv_strides(MpegEncContext *s, int *mv_step, int *stride)
{
if
(
s
->
codec_id
==
CODEC_ID_H264
)
{
H264Context
*
h
=
(
void
*
)
s
;
a
ssert
(
s
->
quarter_sample
);
a
v_assert0
(
s
->
quarter_sample
);
*
mv_step
=
4
;
*
stride
=
h
->
b_stride
;
}
else
{
...
...
@@ -493,8 +493,8 @@ static void guess_mv(MpegEncContext *s)
if
(
fixed
[
mb_xy
]
==
MV_FROZEN
)
continue
;
a
ssert
(
!
IS_INTRA
(
s
->
current_picture
.
f
.
mb_type
[
mb_xy
]));
a
ssert
(
s
->
last_picture_ptr
&&
s
->
last_picture_ptr
->
f
.
data
[
0
]);
a
v_assert1
(
!
IS_INTRA
(
s
->
current_picture
.
f
.
mb_type
[
mb_xy
]));
a
v_assert1
(
s
->
last_picture_ptr
&&
s
->
last_picture_ptr
->
f
.
data
[
0
]);
j
=
0
;
if
(
mb_x
>
0
&&
fixed
[
mb_xy
-
1
]
==
MV_FROZEN
)
...
...
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