From 29d5bb7537f8b35a36ad3331413f3994fd942924 Mon Sep 17 00:00:00 2001 From: Romain Bouqueau Date: Wed, 5 May 2021 17:56:11 +0200 Subject: [PATCH] fix arity when specified it is "per item" - fix #25 --- src/spec_heif.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spec_heif.cpp b/src/spec_heif.cpp index b6e0942..9a39d75 100644 --- a/src/spec_heif.cpp +++ b/src/spec_heif.cpp @@ -710,12 +710,12 @@ static const SpecDesc specHeif = boxCheck(root, out, { FOURCC("pasp") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: at most one per image item boxCheck(root, out, { FOURCC("colr") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: at most one per image item boxCheck(root, out, { FOURCC("pixi") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: at most one per image item - boxCheck(root, out, { FOURCC("rloc") }, { FOURCC("ipco") }, { 0, 1 }); // mandatory, if the item has a 'tbas' item reference to another image item - boxCheck(root, out, { FOURCC("auxC") }, { FOURCC("ipco") }, { 0, 1 }); // mandatory, for an image item containing an auxiliary image - boxCheck(root, out, { FOURCC("clap") }, { FOURCC("ipco") }, { 0, 1 }); - boxCheck(root, out, { FOURCC("irot") }, { FOURCC("ipco") }, { 0, 1 }); - boxCheck(root, out, { FOURCC("lsel") }, { FOURCC("ipco") }, { 0, 1 }); - boxCheck(root, out, { FOURCC("imir") }, { FOURCC("ipco") }, { 0, 1 }); + boxCheck(root, out, { FOURCC("rloc") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // mandatory, if the item has a 'tbas' item reference to another image item + boxCheck(root, out, { FOURCC("auxC") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: one per image item // mandatory, for an image item containing an auxiliary image + boxCheck(root, out, { FOURCC("clap") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: one per image item + boxCheck(root, out, { FOURCC("irot") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: one per image item + boxCheck(root, out, { FOURCC("lsel") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: one per image item + boxCheck(root, out, { FOURCC("imir") }, { FOURCC("ipco") }, { 0, INT32_MAX }); // TODO: one per image item boxCheck(root, out, { FOURCC("ccst") }, visualSampleEntryFourccs, { 1, 1 }); }