1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-07-12 23:00:55 +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

View File

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