[FFmpeg-cvslog] avutil/tests/random_seed: eliminate goto
Michael Niedermayer
git at videolan.org
Fri Dec 23 22:50:55 EET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Dec 23 03:04:47 2016 +0100| [c193132ce590868e68bbdfbb442516c1dfff1fd8] | committer: Michael Niedermayer
avutil/tests/random_seed: eliminate goto
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> 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;
- }
+}
More information about the ffmpeg-cvslog
mailing list