changeset 185:8fceccef5804 libavcodec

fixed -npp help ... i think i need more sleep ;)
author michael
date Fri, 04 Jan 2002 21:56:11 +0000
parents 69d105cc6158
children cf37da86d990
files libpostproc/postprocess.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpostproc/postprocess.c	Fri Jan 04 13:39:06 2002 +0000
+++ b/libpostproc/postprocess.c	Fri Jan 04 21:56:11 2002 +0000
@@ -580,13 +580,6 @@
 
 	strncpy(temp, name, GET_MODE_BUFFER_SIZE);
 
-	if(!strcmp("help", name))
-	{
-		printf("%s", help);
-		ppMode.error++;
-		return ppMode;
-	}
-	
 	if(verbose) printf("%s\n", name);
 
 	for(;;){
@@ -768,6 +761,13 @@
 int readPPOpt(void *conf, char *arg)
 {
 	int quality;
+	
+	if(!strcmp("help", arg))
+	{
+		printf("%s", help);
+		exit(1);
+	}
+	
 	for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++)
 	{
 		gPPMode[quality]= getPPModeByNameAndQuality(arg, quality);