From 83c4ef1ea85fc00646479daa2ed759c217d9565a Mon Sep 17 00:00:00 2001 From: Joshua Banton Date: Mon, 22 Mar 2021 10:03:13 -0400 Subject: [PATCH] Removes checking for mdat box before meta box. (#585) --- imagemeta/heif.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/imagemeta/heif.go b/imagemeta/heif.go index dd338091..f54346e0 100644 --- a/imagemeta/heif.go +++ b/imagemeta/heif.go @@ -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