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
8328df74
Commit
8328df74
authored
Nov 23, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
motion_est: use av_assert* instead of assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
56540bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
motion_est.c
libavcodec/motion_est.c
+3
-3
No files found.
libavcodec/motion_est.c
View file @
8328df74
...
...
@@ -113,7 +113,7 @@ static av_always_inline int cmp_direct_inline(MpegEncContext *s, const int x, co
uint8_t
*
const
*
const
src
=
c
->
src
[
src_index
];
int
d
;
//FIXME check chroma 4mv, (no crashes ...)
a
ssert
(
x
>=
c
->
xmin
&&
hx
<=
c
->
xmax
<<
(
qpel
+
1
)
&&
y
>=
c
->
ymin
&&
hy
<=
c
->
ymax
<<
(
qpel
+
1
));
a
v_assert2
(
x
>=
c
->
xmin
&&
hx
<=
c
->
xmax
<<
(
qpel
+
1
)
&&
y
>=
c
->
ymin
&&
hy
<=
c
->
ymax
<<
(
qpel
+
1
));
if
(
x
>=
c
->
xmin
&&
hx
<=
c
->
xmax
<<
(
qpel
+
1
)
&&
y
>=
c
->
ymin
&&
hy
<=
c
->
ymax
<<
(
qpel
+
1
)){
const
int
time_pp
=
s
->
pp_time
;
const
int
time_pb
=
s
->
pb_time
;
...
...
@@ -392,7 +392,7 @@ static int sad_hpel_motion_search(MpegEncContext * s,
const
int
flags
=
c
->
sub_flags
;
LOAD_COMMON
a
ssert
(
flags
==
0
);
a
v_assert2
(
flags
==
0
);
if
(
c
->
skip
){
*
mx_ptr
=
0
;
...
...
@@ -1593,7 +1593,7 @@ static inline int direct_search(MpegEncContext * s, int mb_x, int mb_y)
if
(
s
->
mv_type
==
MV_TYPE_16X16
)
break
;
}
a
ssert
(
xmax
<=
15
&&
ymax
<=
15
&&
xmin
>=
-
16
&&
ymin
>=
-
16
);
a
v_assert2
(
xmax
<=
15
&&
ymax
<=
15
&&
xmin
>=
-
16
&&
ymin
>=
-
16
);
if
(
xmax
<
0
||
xmin
>
0
||
ymax
<
0
||
ymin
>
0
){
s
->
b_direct_mv_table
[
mot_xy
][
0
]
=
0
;
...
...
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