diff mbox

[FFmpeg-devel,v2,3/3] bavfilter/vsrc_life: Fix for random_seed type

Message ID 20191122014804.14701-3-lance.lmwang@gmail.com
State New
Headers show

Commit Message

Lance Wang Nov. 22, 2019, 1:48 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vsrc_life.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Moritz Barsnick Nov. 23, 2019, 8:14 p.m. UTC | #1
On Fri, Nov 22, 2019 at 09:48:04 +0800, lance.lmwang@gmail.com wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
> Subject: bavfilter/vsrc_life: Fix for random_seed type
           ^
There's a stray letter in that line. (Also in another patch.)

Moritz
Lance Wang Nov. 23, 2019, 11:48 p.m. UTC | #2
On Sat, Nov 23, 2019 at 09:14:35PM +0100, Moritz Barsnick wrote:
> On Fri, Nov 22, 2019 at 09:48:04 +0800, lance.lmwang@gmail.com wrote:
> > From: Limin Wang <lance.lmwang@gmail.com>
> > Subject: bavfilter/vsrc_life: Fix for random_seed type
>            ^
> There's a stray letter in that line. (Also in another patch.)

Yes, good catch, I have send the update version immediately after 
get the mail. It seems that I should reply the thread to ignore it,
sorry for that.

> 
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c
index a87ceef15d..4c0ea73d8a 100644
--- a/libavfilter/vsrc_life.c
+++ b/libavfilter/vsrc_life.c
@@ -63,7 +63,7 @@  typedef struct LifeContext {
     uint64_t pts;
     AVRational frame_rate;
     double   random_fill_ratio;
-    uint32_t random_seed;
+    int64_t random_seed;
     int stitch;
     int mold;
     uint8_t  life_color[4];
@@ -87,8 +87,8 @@  static const AVOption life_options[] = {
     { "rule",     "set rule",         OFFSET(rule_str), AV_OPT_TYPE_STRING, {.str = "B3/S23"}, CHAR_MIN, CHAR_MAX, FLAGS },
     { "random_fill_ratio", "set fill ratio for filling initial grid randomly", OFFSET(random_fill_ratio), AV_OPT_TYPE_DOUBLE, {.dbl=1/M_PHI}, 0, 1, FLAGS },
     { "ratio",             "set fill ratio for filling initial grid randomly", OFFSET(random_fill_ratio), AV_OPT_TYPE_DOUBLE, {.dbl=1/M_PHI}, 0, 1, FLAGS },
-    { "random_seed", "set the seed for filling the initial grid randomly", OFFSET(random_seed), AV_OPT_TYPE_INT, {.i64=-1}, -1, UINT32_MAX, FLAGS },
-    { "seed",        "set the seed for filling the initial grid randomly", OFFSET(random_seed), AV_OPT_TYPE_INT, {.i64=-1}, -1, UINT32_MAX, FLAGS },
+    { "random_seed", "set the seed for filling the initial grid randomly", OFFSET(random_seed), AV_OPT_TYPE_INT64, {.i64=-1}, -1, UINT32_MAX, FLAGS },
+    { "seed",        "set the seed for filling the initial grid randomly", OFFSET(random_seed), AV_OPT_TYPE_INT64, {.i64=-1}, -1, UINT32_MAX, FLAGS },
     { "stitch",      "stitch boundaries", OFFSET(stitch), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
     { "mold",        "set mold speed for dead cells", OFFSET(mold), AV_OPT_TYPE_INT, {.i64=0}, 0, 0xFF, FLAGS },
     { "life_color",  "set life color",  OFFSET( life_color), AV_OPT_TYPE_COLOR, {.str="white"}, CHAR_MIN, CHAR_MAX, FLAGS },