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:
authorJoão Bernardo <jbvsmo@gmail.com>2014-01-18 00:17:43 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-01-18 00:17:43 +0400
commit447d71b89213ea52480cc113b5389453d4167c03 (patch)
tree93056f89fc92b7223c187c47f9ad9d8d078c7cfe /libavfilter/vf_elbg.c
parent19df5dcb4734d699da7177d5cfc8dc1bdcbf91c1 (diff)
avfilter/vf_elbg: Fixed seed range of elbg filter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_elbg.c')
-rw-r--r--libavfilter/vf_elbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index 2781281f71..f92d936714 100644
--- a/libavfilter/vf_elbg.c
+++ b/libavfilter/vf_elbg.c
@@ -36,7 +36,7 @@
typedef struct {
const AVClass *class;
AVLFG lfg;
- int lfg_seed;
+ unsigned int lfg_seed;
int max_steps_nb;
int *codeword;
int codeword_length;
@@ -56,7 +56,7 @@ static const AVOption elbg_options[] = {
{ "nb_steps", "set max number of steps used to compute the mapping", OFFSET(max_steps_nb), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX, FLAGS },
{ "n", "set max number of steps used to compute the mapping", OFFSET(max_steps_nb), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX, FLAGS },
{ "seed", "set the random seed", OFFSET(lfg_seed), AV_OPT_TYPE_INT, {.i64 = -1}, -1, UINT32_MAX, FLAGS },
- { "s", "set the random seed", OFFSET(lfg_seed), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, FLAGS },
+ { "s", "set the random seed", OFFSET(lfg_seed), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, UINT32_MAX, FLAGS },
{ NULL }
};