Clean up comments related to idat fox for an item Clean up the comments for the search for the idat box associated with an item. Note: I find "this meta box" a little confusing in those two functions because the subject of the two functions is an item, not a meta box. So I changed "this meta box" to "the meta box".
diff --git a/src/read.c b/src/read.c index f510429..81ad497 100644 --- a/src/read.c +++ b/src/read.c
@@ -632,7 +632,7 @@ if (item->idatID != 0) { // construction_method: idat(1) - // Find associated idat block + // Find associated idat box for (uint32_t i = 0; i < item->meta->idats.count; ++i) { if (item->meta->idats.idat[i].id == item->idatID) { // Already read from a meta box during Parse() @@ -641,7 +641,7 @@ } } - // no idat box was found in this meta box, bail out + // no associated idat box was found in the meta box, bail out return AVIF_RESULT_NO_CONTENT; } @@ -694,7 +694,7 @@ if (item->idatID != 0) { // construction_method: idat(1) - // Find associated idat block + // Find associated idat box for (uint32_t i = 0; i < item->meta->idats.count; ++i) { if (item->meta->idats.idat[i].id == item->idatID) { idatBuffer = &item->meta->idats.idat[i].data; @@ -703,7 +703,7 @@ } if (idatBuffer == NULL) { - // no idat box was found in this meta box, bail out + // no associated idat box was found in the meta box, bail out return AVIF_RESULT_NO_CONTENT; } }