Add assertion for boolean parameter useNthImageApi

Assert that the boolean parameter useNthImageApi of
decodeNonIncrementallyAndIncrementally() only takes the value of
AVIF_FALSE or AVIF_TRUE. This detects the mistake of passing the
useNthImageApi and cellHeight arguments in the wrong order to this
function.
diff --git a/tests/avifincrtest_helpers.c b/tests/avifincrtest_helpers.c
index 6c03ef2..53e02f3 100644
--- a/tests/avifincrtest_helpers.c
+++ b/tests/avifincrtest_helpers.c
@@ -4,6 +4,7 @@
 #include "avifincrtest_helpers.h"
 #include "avif/avif.h"
 
+#include <assert.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
@@ -412,6 +413,8 @@
                                                 avifBool useNthImageApi,
                                                 uint32_t cellHeight)
 {
+    // TODO(wtc): Remove this assertion when this file is converted to C++.
+    assert((useNthImageApi == AVIF_FALSE) || (useNthImageApi == AVIF_TRUE));
     avifBool success = AVIF_FALSE;
     avifImage * reference = avifImageCreateEmpty();
     if (!reference) {