]> git.sesse.net Git - ffmpeg/commitdiff
fixed -npp help ... i think i need more sleep ;)
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2002 21:56:11 +0000 (21:56 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jan 2002 21:56:11 +0000 (21:56 +0000)
Originally committed as revision 3988 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/postprocess.c

index aded48e0b870de2d679552ed27f9adef8fac25a9..2289a9333b56bf61a26249f54d225047a19524e7 100644 (file)
@@ -580,13 +580,6 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
 
        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 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
 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);