1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

Removes checking for mdat box before meta box. (#585)

This commit is contained in:
Joshua Banton 2021-03-22 10:03:13 -04:00 committed by GitHub
parent a89803dfe5
commit 83c4ef1ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,8 +210,6 @@ func heifReadBoxes(d *heifData, r io.Reader) error {
if w > d.Width || h > d.Height {
d.Width, d.Height = w, h
}
case "mdat":
return errors.New("mdat box occurred before meta box")
default:
if err := heifDiscardN(r, boxDataSize); err != nil {
return err