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
640b73e1
Commit
640b73e1
authored
Jul 09, 2007
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use correct type for palette
Originally committed as revision 9554 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d8e76049
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tiff.c
libavcodec/tiff.c
+3
-3
No files found.
libavcodec/tiff.c
View file @
640b73e1
...
...
@@ -155,7 +155,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
int
tag
,
type
,
count
,
off
,
value
=
0
;
uint8_t
*
src
,
*
dst
;
int
i
,
j
,
ssize
,
soff
,
stride
;
in
t
*
pal
;
uint32_
t
*
pal
;
uint8_t
*
rp
,
*
gp
,
*
bp
;
tag
=
tget_short
(
&
buf
,
s
->
le
);
...
...
@@ -245,7 +245,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
}
if
(
s
->
bpp
==
8
){
/* make default grayscale pal */
pal
=
(
in
t
*
)
s
->
picture
.
data
[
1
];
pal
=
(
uint32_
t
*
)
s
->
picture
.
data
[
1
];
for
(
i
=
0
;
i
<
256
;
i
++
)
pal
[
i
]
=
i
*
0x010101
;
}
...
...
@@ -378,7 +378,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Palette met but this is not palettized format
\n
"
);
return
-
1
;
}
pal
=
(
in
t
*
)
s
->
picture
.
data
[
1
];
pal
=
(
uint32_
t
*
)
s
->
picture
.
data
[
1
];
off
=
type_sizes
[
type
];
rp
=
buf
;
gp
=
buf
+
count
/
3
*
off
;
...
...
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