expose ioStats on avifDecoder again (currently only interesting when reading items)
diff --git a/src/read.c b/src/read.c
index 5ab051f..7c16d86 100644
--- a/src/read.c
+++ b/src/read.c
@@ -1164,6 +1164,8 @@
decoder->image = avifImageCreateEmpty();
}
+ memset(&decoder->ioStats, 0, sizeof(decoder->ioStats));
+
// -----------------------------------------------------------------------
// Build decode input
@@ -1336,6 +1338,9 @@
decoder->timescale = 1;
decoder->duration = 1;
decoder->durationInTimescales = 1;
+
+ decoder->ioStats.colorOBUSize = colorOBU.size;
+ decoder->ioStats.alphaOBUSize = alphaOBU.size;
}
data->codec[AVIF_CODEC_PLANES_COLOR] = avifCodecCreateForDecode(data->colorInput);