Mercurial > mplayer.hg
diff libaf/af_comp.c @ 36395:2b9bc3c2933d
Remove some macros and switch to libavutil equivalents.
| author | reimar |
|---|---|
| date | Sat, 26 Oct 2013 09:36:23 +0000 |
| parents | 8fa2f43cb760 |
| children |
line wrap: on
line diff
--- a/libaf/af_comp.c Sat Oct 26 09:36:21 2013 +0000 +++ b/libaf/af_comp.c Sat Oct 26 09:36:23 2013 +0000 @@ -26,6 +26,7 @@ #include <math.h> #include <limits.h> +#include "libavutil/common.h" #include "af.h" // Data for specific instances of this filter @@ -94,7 +95,7 @@ return af_to_ms(AF_NCH,s->release,(float*)arg,af->data->rate); case AF_CONTROL_COMP_RATIO | AF_CONTROL_SET: for(i=0;i<AF_NCH;i++) - s->ratio[i] = clamp(((float*)arg)[i],1.0,10.0); + s->ratio[i] = av_clipf(((float*)arg)[i],1.0,10.0); return AF_OK; case AF_CONTROL_COMP_RATIO | AF_CONTROL_GET: for(i=0;i<AF_NCH;i++)
