avutil/tests/random_seed: eliminate goto

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-12-23 03:04:47 +01:00
parent 9b26bf7e2a
commit c193132ce5

View File

@ -43,12 +43,13 @@ int main(void)
goto retry; goto retry;
} }
printf("seeds OK\n"); printf("seeds OK\n");
goto next; break;
retry:; retry:;
} }
printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]); if (retry >= 3) {
return 1; printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]);
next:; return 1;
}
} }
return 0; return 0;
} }