avutil/random_seed: Avoid dead returns

Fixes: CID1538296 Structurally dead code

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-05-20 21:38:53 +02:00
parent c4004605b2
commit 87846f64b5
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 3 additions and 3 deletions

View File

@ -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)