diff options
author | Tristan Matthews <tmatth@videolan.org> | 2019-06-05 08:00:18 +0300 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2019-06-05 16:06:46 +0300 |
commit | 75c3f4a4e94a9d40858558b3773002f59735d73d (patch) | |
tree | 0d8a06d7cf96c0c177aa49a9b62b87aa6c2a04e0 /tools | |
parent | 098a565c551cbe41b5749f6e1d896df0daab96d1 (diff) |
output: automatically use null muxer for /dev/null
Diffstat (limited to 'tools')
-rw-r--r-- | tools/output/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/output/output.c b/tools/output/output.c index 7a37f00..f6e40a1 100644 --- a/tools/output/output.c +++ b/tools/output/output.c @@ -95,6 +95,8 @@ int output_open(MuxerContext **const c_out, fprintf(stderr, "Failed to find muxer named \"%s\"\n", name); return DAV1D_ERR(ENOPROTOOPT); } + } else if (!strcmp(filename, "/dev/null")) { + impl = muxers[0]; } else { const char *ext = find_extension(filename); if (!ext) { |