aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-01-04 21:56:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-01-04 21:56:11 +0000
commit211c4920ea6a5b630e3e528c9fb17b071540cf6e (patch)
treeefbfd24b77d23ec786e14af625bdd654ecfb599d
parent4b001a131274b5450dd463b11e18dc4fefecc71b (diff)
downloadffmpeg-211c4920ea6a5b630e3e528c9fb17b071540cf6e.tar.gz
fixed -npp help ... i think i need more sleep ;)
Originally committed as revision 3988 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r--postproc/postprocess.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/postproc/postprocess.c b/postproc/postprocess.c
index aded48e0b8..2289a9333b 100644
--- a/postproc/postprocess.c
+++ b/postproc/postprocess.c
@@ -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);