mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:10:56 +01:00
avutil/random_seed: turn off buffering when reading from random
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
153cf85b24
commit
9a7f060c32
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ static int read_random(uint8_t *dst, size_t len, const char *file)
|
|||
|
||||
if (!fp)
|
||||
return AVERROR_UNKNOWN;
|
||||
setvbuf(fp, NULL, _IONBF, 0);
|
||||
err = fread(dst, 1, len, fp);
|
||||
fclose(fp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue