kolesa-team / go-webp

Simple and fast webp library for golang
MIT License
225 stars 36 forks source link

Decoder.GetFeatures().HasAnimation() untested #12

Open jrb3dev opened 2 years ago

jrb3dev commented 2 years ago

Noticed this while looking to make use of this package. Patch suggested by inspection, but not run yet.

*** decoder_test.go.orig 2022-01-21 13:39:38.000000000 -0500 --- decoder_test.go 2022-01-21 13:40:22.000000000 -0500


* 100,106 ** t.Fatal("file has_alpha is invalid") }

! if features.HasAlpha { t.Fatal("file has_animation is invalid") } } --- 100,106 ---- t.Fatal("file has_alpha is invalid") }

! if features.HasAnimation { t.Fatal("file has_animation is invalid") } }

lEx0 commented 2 years ago

thx, I will fix in the newest version