[FFmpeg-devel] [PATCH v2] avfilter/f_realtime: add option to scale speed
Moritz Barsnick
barsnick at gmx.net
Sat May 4 17:53:50 EEST 2019
On Sat, May 04, 2019 at 16:19:13 +0200, Paul B Mahol wrote:
> > + { "speed", "speed factor", OFFSET(speed), AV_OPT_TYPE_DOUBLE, { .dbl =
> > 1.0 }, DBL_MIN, DBL_MAX, FLAGS },
>
> Why is this allowed to be negative?
In my reading (and intent), it's forbidden to be negative. Both min and
max are macros representing positives.
I don't own a standard, but web sources tell me DBL_MIN is the
"minimum, normalized, positive value of [type] double", e.g.
https://en.cppreference.com/w/c/types/limits
Moritz
More information about the ffmpeg-devel
mailing list