Mercurial > mplayer.hg
comparison libaf/af_channels.c @ 7998:d48a06d07afb
Adding commandline options for filters and fixing stupid bug in cfg
author | anders |
---|---|
date | Thu, 31 Oct 2002 11:06:19 +0000 |
parents | 6e03baea602f |
children | e8832e66babd |
comparison
equal
deleted
inserted
replaced
7997:253162f19e43 | 7998:d48a06d07afb |
---|---|
87 af->data->format = ((af_data_t*)arg)->format; | 87 af->data->format = ((af_data_t*)arg)->format; |
88 af->data->bps = ((af_data_t*)arg)->bps; | 88 af->data->bps = ((af_data_t*)arg)->bps; |
89 af->mul.n = af->data->nch; | 89 af->mul.n = af->data->nch; |
90 af->mul.d = ((af_data_t*)arg)->nch; | 90 af->mul.d = ((af_data_t*)arg)->nch; |
91 return AF_OK; | 91 return AF_OK; |
92 case AF_CONTROL_COMMAND_LINE:{ | |
93 int nch = 0; | |
94 sscanf((char*)arg,"%i",&nch); | |
95 return af->control(af,AF_CONTROL_CHANNELS,&nch); | |
96 } | |
92 case AF_CONTROL_CHANNELS: | 97 case AF_CONTROL_CHANNELS: |
93 // Reinit must be called after this function has been called | 98 // Reinit must be called after this function has been called |
94 | 99 |
95 // Sanity check | 100 // Sanity check |
96 if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){ | 101 if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){ |