shithub: hj264

Download patch

ref: 613f2b06502218ec5e9b541246be7469dcf2beca
parent: c6ffefd38f9b69b560e543571e98549c3facd611
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Jul 14 11:04:59 EDT 2021

only one file is required to be specified as argument

--- a/hj264.c
+++ b/hj264.c
@@ -321,7 +321,7 @@
 static void
 usage(void)
 {
-	fprint(2, "usage: %s [-d] [-f FPS] [-n THREADS] [-k KBPS] [-q 0…10] [-Q QP]\n", argv0);
+	fprint(2, "usage: %s [-d] [-f FPS] [-n THREADS] [-k KBPS] [-q 0…10] [-Q QP] FILE\n", argv0);
 	threadexitsall("usage");
 }
 
@@ -386,7 +386,7 @@
 	if(kbps < 0)
 		kbps = 0;
 
-	if(argc < 1)
+	if(argc != 1)
 		usage();
 	if((in = open(*argv, OREAD)) < 0)
 		sysfatal("input: %r");