ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Fri Dec 23 03:04:47 2016 +0100| [c193132ce590868e68bbdfbb442516c1dfff1fd8] | committer: Michael Niedermayer
avutil/tests/random_seed: eliminate goto Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c193132ce590868e68bbdfbb442516c1dfff1fd8 --- libavutil/tests/random_seed.c | 11 ++++++----- 1 file 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; - } +} _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
