[FFmpeg-cvslog] avutil/random_seed: turn off buffering when reading from random
Marton Balint
git at videolan.org
Sun Jul 16 12:54:54 EEST 2023
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Jul 9 10:38:21 2023 +0200| [9a7f060c3264fd6042b54834374cd8e3a0169224] | committer: Marton Balint
avutil/random_seed: turn off buffering when reading from random
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a7f060c3264fd6042b54834374cd8e3a0169224
---
libavutil/random_seed.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c
index f167b172f2..6d399cee49 100644
--- a/libavutil/random_seed.c
+++ b/libavutil/random_seed.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list