On Fri, Oct 11, 2019 at 06:20:00AM +0000, Andreas Rheinhardt wrote: > lance.lmw...@gmail.com: > > From: Limin Wang <lance.lmw...@gmail.com> > > > > Signed-off-by: Limin Wang <lance.lmw...@gmail.com> > > --- > > libavfilter/vf_random.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavfilter/vf_random.c b/libavfilter/vf_random.c > > index 1937eae771..9f2153be61 100644 > > --- a/libavfilter/vf_random.c > > +++ b/libavfilter/vf_random.c > > @@ -33,7 +33,7 @@ typedef struct RandomContext { > > > > AVLFG lfg; > > int nb_frames; > > - int64_t random_seed; > > + int32_t random_seed; > > int nb_frames_filled; > > AVFrame *frames[MAX_FRAMES]; > > int64_t pts[MAX_FRAMES]; > > > { "seed", "set the seed", OFFSET(random_seed), > AV_OPT_TYPE_INT64, {.i64=-1}, -1, UINT32_MAX, FLAGS }, > > So in addition to the complete range of an uint32_t one also needs > another value that instructs init to get a random seed of its own.
yes, the max range is UINT32_MAX, so no need to use int64_t > > - Andreas > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".