fixed -npp help ... i think i need more sleep ;)

Originally committed as revision 3988 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
pull/126/head
Michael Niedermayer 23 years ago
parent 4b001a1312
commit 211c4920ea
  1. 14
      postproc/postprocess.c

@ -580,13 +580,6 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
strncpy(temp, name, GET_MODE_BUFFER_SIZE); strncpy(temp, name, GET_MODE_BUFFER_SIZE);
if(!strcmp("help", name))
{
printf("%s", help);
ppMode.error++;
return ppMode;
}
if(verbose) printf("%s\n", name); if(verbose) printf("%s\n", name);
for(;;){ for(;;){
@ -768,6 +761,13 @@ struct PPMode getPPModeByNameAndQuality(char *name, int quality)
int readPPOpt(void *conf, char *arg) int readPPOpt(void *conf, char *arg)
{ {
int quality; int quality;
if(!strcmp("help", arg))
{
printf("%s", help);
exit(1);
}
for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++) for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++)
{ {
gPPMode[quality]= getPPModeByNameAndQuality(arg, quality); gPPMode[quality]= getPPModeByNameAndQuality(arg, quality);

Loading…
Cancel
Save