Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-21 03:49:24 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-03-21 03:53:57 +0400
commit76fdced10920abc189465d0a222f582c7ca53c70 (patch)
tree4cb78a6634ad208286dd3d5c971a8f636f66e787 /libavfilter/asrc_sine.c
parent426ebdf923f9826e456bb734299fa2d2b6199524 (diff)
asrc_sine: avoid use of INFINITY as it might be a non constant
This should fix compilation on openbsd Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/asrc_sine.c')
-rw-r--r--libavfilter/asrc_sine.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavfilter/asrc_sine.c b/libavfilter/asrc_sine.c
index 8b406ff455..82a2bef64f 100644
--- a/libavfilter/asrc_sine.c
+++ b/libavfilter/asrc_sine.c
@@ -18,6 +18,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <float.h>
+
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
@@ -60,10 +62,10 @@ typedef struct {
OPT_GENERIC(name, field, def, min, max, descr, DURATION, str, __VA_ARGS__)
static const AVOption sine_options[] = {
- OPT_DBL("frequency", frequency, 440, 0, INFINITY, "set the sine frequency"),
- OPT_DBL("f", frequency, 440, 0, INFINITY, "set the sine frequency"),
- OPT_DBL("beep_factor", beep_factor, 0, 0, INFINITY, "set the beep fequency factor"),
- OPT_DBL("b", beep_factor, 0, 0, INFINITY, "set the beep fequency factor"),
+ OPT_DBL("frequency", frequency, 440, 0, DBL_MAX, "set the sine frequency"),
+ OPT_DBL("f", frequency, 440, 0, DBL_MAX, "set the sine frequency"),
+ OPT_DBL("beep_factor", beep_factor, 0, 0, DBL_MAX, "set the beep fequency factor"),
+ OPT_DBL("b", beep_factor, 0, 0, DBL_MAX, "set the beep fequency factor"),
OPT_INT("sample_rate", sample_rate, 44100, 1, INT_MAX, "set the sample rate"),
OPT_INT("r", sample_rate, 44100, 1, INT_MAX, "set the sample rate"),
OPT_DUR("duration", duration, 0, 0, INT64_MAX, "set the audio duration"),