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
953c7550
Commit
953c7550
authored
Jul 21, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/snowenc: convert speed relevant asserts to av_assert2()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7b79c84b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
snowenc.c
libavcodec/snowenc.c
+4
-4
No files found.
libavcodec/snowenc.c
View file @
953c7550
...
...
@@ -62,10 +62,10 @@ static void find_sse(SnowContext *s, Plane *p, int *score, int score_stride, IDW
int
sx
=
(
x
-
xo
+
step
/
2
)
/
step
/
Q2_STEP
;
int
sy
=
(
y
-
yo
+
step
/
2
)
/
step
/
Q2_STEP
;
int
v
=
r0
[
x
+
y
*
p
->
width
]
-
r1
[
x
+
y
*
p
->
width
];
a
ssert
(
sx
>=
0
&&
sy
>=
0
&&
sx
<
score_stride
);
a
v_assert2
(
sx
>=
0
&&
sy
>=
0
&&
sx
<
score_stride
);
v
=
((
v
+
8
)
>>
4
)
<<
4
;
score
[
sx
+
sy
*
score_stride
]
+=
v
*
v
;
a
ssert
(
score
[
sx
+
sy
*
score_stride
]
>=
0
);
a
v_assert2
(
score
[
sx
+
sy
*
score_stride
]
>=
0
);
}
}
}
...
...
@@ -963,10 +963,10 @@ static int encode_subband_c0run(SnowContext *s, SubBand *b, const IDWTELEM *src,
if
(
run_index
<=
max_index
)
put_symbol2
(
&
s
->
c
,
b
->
state
[
1
],
run
,
3
);
a
ssert
(
v
);
a
v_assert2
(
v
);
}
else
{
run
--
;
a
ssert
(
!
v
);
a
v_assert2
(
!
v
);
}
}
if
(
v
){
...
...
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