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
b998a56b
Commit
b998a56b
authored
Nov 12, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/jpeg2000dec: Fix used variables reading palette.
Affected files with palette and colour-depth < 8.
parent
5b5365fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jpeg2000dec.c
libavcodec/jpeg2000dec.c
+2
-2
No files found.
libavcodec/jpeg2000dec.c
View file @
b998a56b
...
...
@@ -2039,13 +2039,13 @@ static int jp2_find_codestream(Jpeg2000DecoderContext *s)
}
if
(
colour_depth
[
1
]
<=
8
)
{
g
=
bytestream2_get_byteu
(
&
s
->
g
)
<<
8
-
colour_depth
[
1
];
r
|=
r
>>
colour_depth
[
1
];
g
|=
g
>>
colour_depth
[
1
];
}
else
{
g
=
bytestream2_get_be16u
(
&
s
->
g
)
>>
colour_depth
[
1
]
-
8
;
}
if
(
colour_depth
[
2
]
<=
8
)
{
b
=
bytestream2_get_byteu
(
&
s
->
g
)
<<
8
-
colour_depth
[
2
];
r
|=
r
>>
colour_depth
[
2
];
b
|=
b
>>
colour_depth
[
2
];
}
else
{
b
=
bytestream2_get_be16u
(
&
s
->
g
)
>>
colour_depth
[
2
]
-
8
;
}
...
...
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