Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9483b3ba
Commit
9483b3ba
authored
Apr 25, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Treat samples as unspecified if there's no ExtraSamples tag.
parent
cad8afb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tiffformat.c
dlls/windowscodecs/tiffformat.c
+4
-3
No files found.
dlls/windowscodecs/tiffformat.c
View file @
9483b3ba
...
...
@@ -254,7 +254,7 @@ static inline TiffFrameDecode *impl_from_IWICBitmapFrameDecode(IWICBitmapFrameDe
static
HRESULT
tiff_get_decode_info
(
TIFF
*
tiff
,
tiff_decode_info
*
decode_info
)
{
uint16
photometric
,
bps
,
samples
,
planar
;
uint16
extra_sample_count
,
*
extra_samples
;
uint16
extra_sample_count
,
extra_sample
,
*
extra_samples
;
int
ret
;
decode_info
->
indexed
=
0
;
...
...
@@ -327,8 +327,9 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_EXTRASAMPLES
,
&
extra_sample_count
,
&
extra_samples
);
if
(
!
ret
)
{
WARN
(
"Cannot get extra sample type for RGB data, ret=%i count=%i
\n
"
,
ret
,
extra_sample_count
);
return
E_FAIL
;
extra_sample_count
=
1
;
extra_sample
=
0
;
extra_samples
=
&
extra_sample
;
}
}
else
if
(
samples
!=
3
)
...
...
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