ref: 75c3f4a4e94a9d40858558b3773002f59735d73d
parent: 098a565c551cbe41b5749f6e1d896df0daab96d1
author: Tristan Matthews <tmatth@videolan.org>
date: Tue Jun 4 21:00:18 EDT 2019
output: automatically use null muxer for /dev/null
--- a/tools/output/output.c
+++ b/tools/output/output.c
@@ -95,6 +95,8 @@
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) {