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
a75ca3ca
Commit
a75ca3ca
authored
Jun 19, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/jpeg2000dwt: Fix special cases in sd_1d53()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0ce918c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
jpeg2000dwt.c
libavcodec/jpeg2000dwt.c
+4
-4
No files found.
libavcodec/jpeg2000dwt.c
View file @
a75ca3ca
...
...
@@ -84,8 +84,11 @@ static void sd_1d53(int *p, int i0, int i1)
{
int
i
;
if
(
i1
==
i0
+
1
)
if
(
i1
<=
i0
+
1
)
{
if
(
i0
==
1
)
p
[
1
]
<<=
1
;
return
;
}
extend53
(
p
,
i0
,
i1
);
...
...
@@ -110,8 +113,6 @@ static void dwt_encode53(DWTContext *s, int *t)
lp
;
int
*
l
;
av_assert1
(
!
mh
&&
!
mv
);
// VER_SD
l
=
line
+
mv
;
for
(
lp
=
0
;
lp
<
lh
;
lp
++
)
{
...
...
@@ -630,7 +631,6 @@ int main(void) {
for
(
i
=
0
;
i
<
40
;
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
border
[
0
][
j
]
=
av_lfg_get
(
&
prng
)
%
MAX_W
;
border
[
0
][
0
]
=
border
[
1
][
0
]
=
0
;
if
(
border
[
0
][
0
]
>=
border
[
0
][
1
]
||
border
[
1
][
0
]
>=
border
[
1
][
1
])
continue
;
decomp_levels
=
av_lfg_get
(
&
prng
)
%
FF_DWT_MAX_DECLVLS
;
...
...
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