[trunk] Explicitely reject file4/file6 scenario

Update issue 286
This commit is contained in:
Mathieu Malaterre 2014-03-17 16:18:22 +00:00
parent 866cd28ad4
commit 99d1859a44
1 changed files with 7 additions and 0 deletions

View File

@ -771,6 +771,13 @@ int main(int argc, char **argv)
/* Comparison of header parameters*/
printf("Step 1 -> Header comparison\n");
/* check dimensions (issue 286)*/
if(imageBase->numcomps != imageTest->numcomps )
{
printf("ERROR: dim mismatch (%d><%d)\n", imageBase->numcomps, imageTest->numcomps);
goto cleanup;
}
for (it_comp = 0; it_comp < imageBase->numcomps; it_comp++)
{
param_image_diff[it_comp].x0 = 0;