1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-09-08 05:49:54 +00:00
This commit is contained in:
Laura
2025-08-13 20:52:34 +02:00
parent 5ef75343d5
commit 580e76f192

View File

@@ -58,6 +58,8 @@ func Sniff(reader io.Reader, input string, ignoreExtension bool) (*Sniffed, io.R
) )
for _, codec := range codecs { for _, codec := range codecs {
ra.Seek(0, 0)
confidence, header, err := codec.Sniff(ra) confidence, header, err := codec.Sniff(ra)
if err != nil { if err != nil {
if errors.Is(err, io.EOF) { if errors.Is(err, io.EOF) {