diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-23 03:04:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-23 21:47:26 +0100 |
commit | c193132ce590868e68bbdfbb442516c1dfff1fd8 (patch) | |
tree | 1bd6350382c63338d56bcb673ca1bb12df6e3cb2 /libavutil | |
parent | 9b26bf7e2a3904d0e4b80f8d771223d3045013db (diff) | |
download | ffmpeg-streaming-c193132ce590868e68bbdfbb442516c1dfff1fd8.zip ffmpeg-streaming-c193132ce590868e68bbdfbb442516c1dfff1fd8.tar.gz |
avutil/tests/random_seed: eliminate goto
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/tests/random_seed.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavutil/tests/random_seed.c b/libavutil/tests/random_seed.c index f45e198..78067db 100644 --- a/libavutil/tests/random_seed.c +++ b/libavutil/tests/random_seed.c @@ -43,12 +43,13 @@ int main(void) goto retry; } printf("seeds OK\n"); - goto next; + break; retry:; } - printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]); - return 1; - next:; + if (retry >= 3) { + printf("rsf %d: FAIL at %d with %X\n", rsf, j, seeds[j]); + return 1; + } } return 0; - } +} |