diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-20 21:38:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-28 03:48:05 +0200 |
commit | 87846f64b5705f2759c157b80073fc841ecc0876 (patch) | |
tree | 01391b55a8851f9154cd7255e5d29336c07f3425 | |
parent | c4004605b2fa6e2ecbd1cfc2a1da382e4f5237a5 (diff) | |
download | ffmpeg-87846f64b5705f2759c157b80073fc841ecc0876.tar.gz |
avutil/random_seed: Avoid dead returns
Fixes: CID1538296 Structurally dead code
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavutil/random_seed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index 6d399cee49..8a4e4f1fc0 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -158,10 +158,10 @@ int av_random_bytes(uint8_t* buf, size_t len) #elif CONFIG_OPENSSL if (RAND_bytes(buf, len) == 1) return 0; - err = AVERROR_EXTERNAL; -#endif - + return AVERROR_EXTERNAL; +#else return err; +#endif } uint32_t av_get_random_seed(void) |