Mercurial > mplayer.hg
diff libaf/af_resample.c @ 8868:398e3fb7c103
10l bug for float conversion control + feature fix in volume control
author | anders |
---|---|
date | Fri, 10 Jan 2003 01:45:34 +0000 |
parents | 558f0b1f45ee |
children | 295c20099f12 |
line wrap: on
line diff
--- a/libaf/af_resample.c Fri Jan 10 01:01:38 2003 +0000 +++ b/libaf/af_resample.c Fri Jan 10 01:45:34 2003 +0000 @@ -279,14 +279,14 @@ int rate=0; int type=RSMP_INT; int sloppy=1; - sscanf((char*)arg,"%i:%i:%i", &rate, &type, &sloppy); + sscanf((char*)arg,"%i:%i:%i", &rate, &sloppy, &type); s->setup = (sloppy?FREQ_SLOPPY:FREQ_EXACT) | (clamp(type,RSMP_LIN,RSMP_FLOAT)); return af->control(af,AF_CONTROL_RESAMPLE_RATE | AF_CONTROL_SET, &rate); } case AF_CONTROL_POST_CREATE: if((((af_cfg_t*)arg)->force & AF_INIT_FORMAT_MASK) == AF_INIT_FLOAT) - ((af_resample_t*)af->setup)->setup |= RSMP_FLOAT; + ((af_resample_t*)af->setup)->setup = RSMP_FLOAT; return AF_OK; case AF_CONTROL_RESAMPLE_RATE | AF_CONTROL_SET: // Reinit must be called after this function has been called