Skip to content

Commit fa3ffe9

Browse files
committed
Add diagnostic message for invalid extraLayerCount
1 parent f34c156 commit fa3ffe9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ static avifResult avifEncoderAddImageInternal(avifEncoder * encoder,
943943
}
944944

945945
if (encoder->extraLayerCount >= AVIF_MAX_AV1_LAYER_COUNT) {
946+
avifDiagnosticsPrintf(&encoder->diag, "extraLayerCount [%u] must be less than %d", encoder->extraLayerCount, AVIF_MAX_AV1_LAYER_COUNT);
946947
return AVIF_RESULT_INVALID_ARGUMENT;
947948
}
948949

0 commit comments

Comments
 (0)