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
6ecf1eb0
Commit
6ecf1eb0
authored
Aug 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snowdec: add 2 av_asserts to check run validity
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4a596d19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
snow.h
libavcodec/snow.h
+3
-1
No files found.
libavcodec/snow.h
View file @
6ecf1eb0
...
...
@@ -664,11 +664,13 @@ static inline void unpack_coeffs(SnowContext *s, SubBand *b, SubBand * parent, i
int
max_run
;
run
--
;
v
=
0
;
av_assert2
(
run
>=
0
);
if
(
y
)
max_run
=
FFMIN
(
run
,
prev_xc
->
x
-
x
-
2
);
else
max_run
=
FFMIN
(
run
,
w
-
x
-
1
);
if
(
parent_xc
)
max_run
=
FFMIN
(
max_run
,
2
*
parent_xc
->
x
-
x
-
1
);
av_assert2
(
max_run
>=
0
&&
max_run
<=
run
);
x
+=
max_run
;
run
-=
max_run
;
}
...
...
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