[NUT-devel] [nut]: r522 - src/trunk/nututils/nutmerge.c

ods15 subversion at mplayerhq.hu
Fri Feb 1 14:48:15 CET 2008


Author: ods15
Date: Fri Feb  1 14:48:14 2008
New Revision: 522

Log:
Friendlier error message from nutmerge


Modified:
   src/trunk/nututils/nutmerge.c

Modified: src/trunk/nututils/nutmerge.c
==============================================================================
--- src/trunk/nututils/nutmerge.c	(original)
+++ src/trunk/nututils/nutmerge.c	Fri Feb  1 14:48:14 2008
@@ -141,7 +141,7 @@ int main(int argc, char * argv []) {
 		argv += 2;
 		argc -= 2;
 	}
-	if (argc < 3) { fprintf(stderr, "bleh, more params you fool...\n"); return 1; }
+	if (argc < 3) { fprintf(stderr, "usage: %s source.avi output.nut\n", argv[0]); return 1; }
 	extension = argv[1];
 	for (i = 0; argv[1][i]; i++) if (argv[1][i] == '.') extension = &argv[1][i+1];
 	for (i = 0; ndemuxers[i]; i++) if (!strcmp(ndemuxers[i]->extension, extension)) break;



More information about the NUT-devel mailing list