diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-12 07:53:06 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-12 07:53:06 +0100 |
| commit | ae811c3ce7b71902b508c65278050f0358471e98 (patch) | |
| tree | e6f802e8476da87c4f53320128e674c58ee9c6a3 /src/vu-concat.c | |
| parent | Makefile: clean: do not list .o files explicitly (diff) | |
| download | blind-ae811c3ce7b71902b508c65278050f0358471e98.tar.gz blind-ae811c3ce7b71902b508c65278050f0358471e98.tar.bz2 blind-ae811c3ce7b71902b508c65278050f0358471e98.tar.xz | |
m + Add vu-gauss-blur
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/vu-concat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vu-concat.c b/src/vu-concat.c index d71674f..0faf653 100644 --- a/src/vu-concat.c +++ b/src/vu-concat.c @@ -77,9 +77,11 @@ concat_to_file(int argc, char *argv[], char *output_file) sprintf(head, "%zu %zu %zu %s\n%cuivf%zn", stream.frames, stream.width, stream.height, stream.pixfmt, 0, &headlen); - ewriteall(STDOUT_FILENO, head, (size_t)headlen, "<stdout>"); + ewriteall(fd, head, (size_t)headlen, output_file); data = mmap(0, size + (size_t)headlen, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + if (data == MAP_FAILED) + eprintf("mmap %s:", output_file); memmove(data + headlen, data, size); memcpy(data, head, (size_t)headlen); munmap(data, size + (size_t)headlen); |
