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
d898ab90
Commit
d898ab90
authored
Sep 06, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix decoding of 2/4 bpp Tiff samples.
parent
f863cdef
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 @
d898ab90
...
...
@@ -294,8 +294,8 @@ static int init_image(TiffContext *s)
}
else
{
/* make default grayscale pal */
pal
=
(
uint32_t
*
)
s
->
picture
.
data
[
1
];
for
(
i
=
0
;
i
<
256
;
i
++
)
pal
[
i
]
=
i
*
0x010101
;
for
(
i
=
0
;
i
<
1
<<
s
->
bpp
;
i
++
)
pal
[
i
]
=
i
*
255
/
((
1
<<
s
->
bpp
)
-
1
)
*
0x010101
;
}
}
return
0
;
...
...
@@ -615,7 +615,7 @@ static int decode_frame(AVCodecContext *avctx,
src
=
s
->
picture
.
data
[
0
];
for
(
j
=
0
;
j
<
s
->
height
;
j
++
){
for
(
i
=
0
;
i
<
s
->
picture
.
linesize
[
0
];
i
++
)
src
[
i
]
=
255
-
src
[
i
];
src
[
i
]
=
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_PAL8
?
(
1
<<
s
->
bpp
)
-
1
:
255
)
-
src
[
i
];
src
+=
s
->
picture
.
linesize
[
0
];
}
}
...
...
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