From patchwork Fri Oct 11 06:14:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15697 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id D8BFC448716 for ; Fri, 11 Oct 2019 09:15:10 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C0E78689924; Fri, 11 Oct 2019 09:15:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B92646898D2 for ; Fri, 11 Oct 2019 09:15:04 +0300 (EEST) Received: by mail-pf1-f193.google.com with SMTP id x127so5427904pfb.7 for ; Thu, 10 Oct 2019 23:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qeSSF5lJjN+8bxgxZHWChu1TOmq/ceRHa6JbqeDN9ys=; b=HgRPILXQsC+dNXVLdb4Q4EMh3senby1tIdvPZwXRc3FDey4UENKcFhGIyCPmzjQbji ilF4x4UuhOopELU+HYabLPTf5HPqNkbcdM6gzt/IFu0msqYWELfB26SYW0Iw2hB3+oNW wkDospV2G0cJ3qk7HX3GmlV47i+6yzi0UKwaP8jaQDcK6ftEFRb3b+3FohRV9TxFiT/c J9w+snOYD0XU8+APmxWZflJVH87G8maKf8cDobnQ4uELYNH0phwFgYPbLMVUZrfmwnk5 RotClVzl/HQb4wloX5nYnjNtPaJu4yW6wSXLV65kKToaoFnxoieLt0DiRqe9z/HfAkYD RUpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qeSSF5lJjN+8bxgxZHWChu1TOmq/ceRHa6JbqeDN9ys=; b=fKj5lIs2hmSLmKH7x1rIwMau26f4QZfShIdfrfwAmNEby553kqApLroyzlDs3xV2YE VYeemKKfmzpaynoCP2i/rlP556D0d6JCqjVq33IKXBb6PQLN149WePYPudrz6NJCwOcf fPG85jeRNj7A3DlY1IG30sWnQ/5i45rKaWJH/QgO3tziy+Tx+d8//QiyLL8ateJIORdQ tJaY5V4ooSsIyI0ldJqXh0vWHU3zztw9hufu++l/v6GM1Ci5ntTFo1CLAgxanoVNVAkR TMwe9V76io2OKQVpoWVusXjx4nDdWhbBcXLjtNnMe0w3kRACIiZ3cYifpjrgX4SpPNzc 285A== X-Gm-Message-State: APjAAAU/J6z3+VhhdqOeEHdetZpERk1YD0bv+g442H/Ny5fz8QLyQgMx VQ5RPZX7dOMH43B3hPinr8OoAZB9 X-Google-Smtp-Source: APXvYqzxpYWTfk/DO017oFCeM/B3/+pap5XBOL3sWEfLQ5tJ6/dXEuYkRDLfmD0zxbzE4AFbMs+gHg== X-Received: by 2002:aa7:9d90:: with SMTP id f16mr14830043pfq.51.1570774502974; Thu, 10 Oct 2019 23:15:02 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id l62sm9692707pfl.167.2019.10.10.23.15.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Oct 2019 23:15:02 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Oct 2019 14:14:44 +0800 Message-Id: <20191011061444.4988-6-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20191011061444.4988-1-lance.lmwang@gmail.com> References: <20191011061444.4988-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v1 6/6] avfilter/vf_random: seeds is uint32, it's enough to use int32_t X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- 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];