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
58bc38a5
Commit
58bc38a5
authored
Sep 28, 2013
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiffdec: use correct data type for palette entries and set alpha to 0xFF
parent
bf2064f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
tiff.c
libavcodec/tiff.c
+6
-5
No files found.
libavcodec/tiff.c
View file @
58bc38a5
...
...
@@ -321,7 +321,7 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start,
const
uint8_t
*
buf
,
const
uint8_t
*
end_buf
)
{
unsigned
tag
,
type
,
count
,
off
,
value
=
0
;
int
i
,
j
;
int
i
;
uint32_t
*
pal
;
const
uint8_t
*
rp
,
*
gp
,
*
bp
;
...
...
@@ -527,10 +527,11 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start,
bp
=
buf
+
count
/
3
*
off
*
2
;
off
=
(
type_sizes
[
type
]
-
1
)
<<
3
;
for
(
i
=
0
;
i
<
count
/
3
;
i
++
)
{
j
=
(
tget
(
&
rp
,
type
,
s
->
le
)
>>
off
)
<<
16
;
j
|=
(
tget
(
&
gp
,
type
,
s
->
le
)
>>
off
)
<<
8
;
j
|=
tget
(
&
bp
,
type
,
s
->
le
)
>>
off
;
pal
[
i
]
=
j
;
uint32_t
p
=
0xFF000000
;
p
|=
(
tget
(
&
rp
,
type
,
s
->
le
)
>>
off
)
<<
16
;
p
|=
(
tget
(
&
gp
,
type
,
s
->
le
)
>>
off
)
<<
8
;
p
|=
tget
(
&
bp
,
type
,
s
->
le
)
>>
off
;
pal
[
i
]
=
p
;
}
s
->
palette_is_set
=
1
;
break
;
...
...
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