diff options
author | 2016-05-28 07:28:50 +0000 | |
---|---|---|
committer | 2016-05-28 07:28:50 +0000 | |
commit | 7f4a21b3f560e2895b8a2d39ca19e5eadd79355d (patch) | |
tree | 315414d40c3a649fc540bf91ee08135a204b0c72 | |
parent | Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...). (diff) | |
download | wireguard-openbsd-7f4a21b3f560e2895b8a2d39ca19e5eadd79355d.tar.xz wireguard-openbsd-7f4a21b3f560e2895b8a2d39ca19e5eadd79355d.zip |
Fix file block size rounding and ensure it's large enough to store a
full audio block.
-rw-r--r-- | usr.bin/aucat/aucat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index 3b1a3638a4b..5ae93d37bf8 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -270,7 +270,7 @@ slot_init(struct slot *s) } #endif s->bpf = s->afile.par.bps * (s->cmax - s->cmin + 1); - s->round = (dev_round * s->afile.rate + dev_rate / 2) / dev_rate; + s->round = (dev_round * s->afile.rate + dev_rate - 1) / dev_rate; bufsz = s->round * (dev_bufsz / dev_round); bufsz -= bufsz % s->round; |