Skip to content

Commit

Permalink
Update reader.go
Browse files Browse the repository at this point in the history
update tiff/reader.go
  • Loading branch information
bin-x authored May 14, 2024
1 parent cf76292 commit c6f5d72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tiff/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,7 @@ func newDecoder(r io.Reader) (*decoder, error) {
}
case 4:
switch d.firstVal(tExtraSamples) {
case 0:
fallthrough
case 1:
case 0, 1:
d.mode = mRGBA
if d.bpp == 16 {
d.config.ColorModel = color.RGBA64Model
Expand Down

0 comments on commit c6f5d72

Please sign in to comment.