You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/random_seed: turn off buffering when reading from random
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -59,6 +59,7 @@ static int read_random(uint8_t *dst, size_t len, const char *file)
|
|||||||
|
|
||||||
if (!fp)
|
if (!fp)
|
||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
|
setvbuf(fp, NULL, _IONBF, 0);
|
||||||
err = fread(dst, 1, len, fp);
|
err = fread(dst, 1, len, fp);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user