Merge avifParseAV1CodecConfigurationBox,Property()
diff --git a/src/read.c b/src/read.c
index a867223..89b6dd4 100644
--- a/src/read.c
+++ b/src/read.c
@@ -1758,10 +1758,12 @@
return AVIF_TRUE;
}
-static avifBool avifParseAV1CodecConfigurationBox(const uint8_t * raw, size_t rawLen, avifCodecConfigurationBox * av1C, avifDiagnostics * diag)
+static avifBool avifParseAV1CodecConfigurationBoxProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen, avifDiagnostics * diag)
{
BEGIN_STREAM(s, raw, rawLen, diag, "Box[av1C]");
+ avifCodecConfigurationBox * av1C = &prop->u.av1C;
+
uint8_t markerAndVersion = 0;
AVIF_CHECK(avifROStreamRead(&s, &markerAndVersion, 1));
uint8_t seqProfileAndIndex = 0;
@@ -1787,11 +1789,6 @@
return AVIF_TRUE;
}
-static avifBool avifParseAV1CodecConfigurationBoxProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen, avifDiagnostics * diag)
-{
- return avifParseAV1CodecConfigurationBox(raw, rawLen, &prop->u.av1C, diag);
-}
-
static avifBool avifParsePixelAspectRatioBoxProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen, avifDiagnostics * diag)
{
BEGIN_STREAM(s, raw, rawLen, diag, "Box[pasp]");