mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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
|
#elif CONFIG_OPENSSL
|
||||||
if (RAND_bytes(buf, len) == 1)
|
if (RAND_bytes(buf, len) == 1)
|
||||||
return 0;
|
return 0;
|
||||||
err = AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t av_get_random_seed(void)
|
uint32_t av_get_random_seed(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user