summaryrefslogtreecommitdiff
path: root/usr.bin/aucat
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-08-27 07:25:28 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-08-27 07:25:28 +0000
commita6c46f74b974dbb890689cc63d2a3db0751e372b (patch)
treecaef76c6bcc10a1d9379df25425a396faa8de277 /usr.bin/aucat
parentb0f0255f1a7a3125cbbc9f7eb0933a38cf63f67f (diff)
Allow sparse blocks to be used as silence if samples are encoded
as signed integers.
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r--usr.bin/aucat/afile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/aucat/afile.c b/usr.bin/aucat/afile.c
index 69680e7c9c7..cc34cd1a598 100644
--- a/usr.bin/aucat/afile.c
+++ b/usr.bin/aucat/afile.c
@@ -827,7 +827,7 @@ int
afile_seek(struct afile *f, off_t pos)
{
pos += f->startpos;
- if (f->endpos >= 0 && pos > f->endpos) {
+ if (f->endpos >= 0 && pos > f->endpos && !f->par.sig) {
log_puts(f->path);
log_puts(": attempt to seek outside file boundaries\n");
return 0;