[FFmpeg-cvslog] vf_hue: fix AVOption defaults

Michael Niedermayer git at videolan.org
Wed Sep 5 22:22:08 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep  5 22:18:53 2012 +0200| [e60fcdb989856db58e9481773f3e56fb0ddc16d4] | committer: Michael Niedermayer

vf_hue: fix AVOption defaults

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e60fcdb989856db58e9481773f3e56fb0ddc16d4
---

 libavfilter/vf_hue.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index dd36d8e..1ce231e 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -53,11 +53,11 @@ typedef struct {
 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 static const AVOption hue_options[] = {
     { "h", "set the hue angle degrees", OFFSET(hue_deg), AV_OPT_TYPE_FLOAT,
-      { -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS },
+      { .dbl = -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS },
     { "H", "set the hue angle radians", OFFSET(hue), AV_OPT_TYPE_FLOAT,
-      { -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS },
+      { .dbl = -FLT_MAX }, -FLT_MAX, FLT_MAX, FLAGS },
     { "s", "set the saturation value", OFFSET(saturation), AV_OPT_TYPE_FLOAT,
-      { SAT_DEFAULT_VAL }, -10, 10, FLAGS },
+      { .dbl = SAT_DEFAULT_VAL }, -10, 10, FLAGS },
     { NULL }
 };
 



More information about the ffmpeg-cvslog mailing list