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
72c2d8a3
Commit
72c2d8a3
authored
Oct 09, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: convert asserts to av_asserts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8da7907a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dsputil.c
libavcodec/dsputil.c
+3
-3
No files found.
libavcodec/dsputil.c
View file @
72c2d8a3
...
...
@@ -1812,7 +1812,7 @@ static int try_8x8basis_c(int16_t rem[64], int16_t weight[64], int16_t basis[64]
int
b
=
rem
[
i
]
+
((
basis
[
i
]
*
scale
+
(
1
<<
(
BASIS_SHIFT
-
RECON_SHIFT
-
1
)))
>>
(
BASIS_SHIFT
-
RECON_SHIFT
));
int
w
=
weight
[
i
];
b
>>=
RECON_SHIFT
;
a
ssert
(
-
512
<
b
&&
b
<
512
);
a
v_assert2
(
-
512
<
b
&&
b
<
512
);
sum
+=
(
w
*
b
)
*
(
w
*
b
)
>>
4
;
}
...
...
@@ -2315,7 +2315,7 @@ static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int
level
=
temp
[
i
]
+
64
;
a
ssert
(
level
-
64
);
a
v_assert2
(
level
-
64
);
if
((
level
&
(
~
127
))
==
0
){
bits
+=
last_length
[
UNI_AC_ENC_INDEX
(
run
,
level
)];
...
...
@@ -2386,7 +2386,7 @@ static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, in
level
=
temp
[
i
]
+
64
;
a
ssert
(
level
-
64
);
a
v_assert2
(
level
-
64
);
if
((
level
&
(
~
127
))
==
0
){
bits
+=
last_length
[
UNI_AC_ENC_INDEX
(
run
,
level
)];
...
...
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