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:
parent
c4004605b2
commit
87846f64b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user