mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-09-08 05:49:54 +00:00
tweak
This commit is contained in:
@@ -58,6 +58,8 @@ func Sniff(reader io.Reader, input string, ignoreExtension bool) (*Sniffed, io.R
|
||||
)
|
||||
|
||||
for _, codec := range codecs {
|
||||
ra.Seek(0, 0)
|
||||
|
||||
confidence, header, err := codec.Sniff(ra)
|
||||
if err != nil {
|
||||
if errors.Is(err, io.EOF) {
|
||||
|
Reference in New Issue
Block a user