diff options
author | Lynne <dev@lynne.ee> | 2020-05-29 13:10:58 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2020-05-29 13:10:58 +0100 |
commit | 83fa39eb06d0d720422e8a5408d15ba472a82ea6 (patch) | |
tree | 7157799bf454bbd7d163b19cfce51f6859d1f5ae /libavformat/rtpdec_rfc4175.c | |
parent | c0f01eaf12479b5d0160e1a8d10a73744fac5ab2 (diff) | |
download | ffmpeg-83fa39eb06d0d720422e8a5408d15ba472a82ea6.tar.gz |
lavfi/vulkan: use av_get_random_seed instead of rand
We need at least a few bits of entropy to determine the start index of each
queue, in order to let filters run in parallel as much as possible, and
rand() is not thread safe and disrupts any external API's usage of rand,
so instead replace it with av_get_random_seed.
While it has more overhead than rand, we only run it once per filter upon init.
Diffstat (limited to 'libavformat/rtpdec_rfc4175.c')
0 files changed, 0 insertions, 0 deletions