avutil/random_seed: Avoid dead returns

Fixes: CID1538296 Structurally dead code

Sponsored-by: Sovereign Tech Fund
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c4004605
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment