From patchwork Sun Apr 11 14:53:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhong Li X-Patchwork-Id: 26864 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 DA3FB44AF0E for ; Sun, 11 Apr 2021 17:54:07 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A7E36687F2A; Sun, 11 Apr 2021 17:54:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-m965.mail.126.com (mail-m965.mail.126.com [123.126.96.5]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 888036805D6 for ; Sun, 11 Apr 2021 17:54:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=VIkhCBLHII5XLHY9CC baehwUowOwOTfope83hSKgGSs=; b=ZJMs2BoE8oQFaoDrOPiWqJxDMy9wxgltR7 S2VSUHavYDJohmtNVhxD4YR1+yqwY7dbBYcZOYF6J7l6i23dJXhdNHRbtebrnYPb Dmm4ShfeO71dNf4emyKeprHCyVWX0ouPZRFvmowUmlNmCeTiNI8FKAh0AXcifP3j Ya2qDBa6Y= Received: from localhost.localdomain (unknown [139.227.220.118]) by smtp10 (Coremail) with SMTP id NuRpCgBHc7uBDXNg9C5Imw--.1775S2; Sun, 11 Apr 2021 22:53:55 +0800 (CST) From: Zhong Li To: ffmpeg-devel@ffmpeg.org Date: Sun, 11 Apr 2021 22:53:49 +0800 Message-Id: <20210411145349.3068-1-zhongli_dev@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: NuRpCgBHc7uBDXNg9C5Imw--.1775S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrurWkZrWUWr1DJFy8Ar18Zrb_yoWxurb_uF 97G34fJF1vvr1fuw4rXr4agr95ta48AF4fur93CF40ya1UA3WruF47X34xtryYgr1fJrnI q3sakr9Yvw1kKjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_o7KDUUUUU== X-Originating-IP: [139.227.220.118] X-CM-SenderInfo: x2kr0wxolbvvby6rjloofrz/1tbiVwNxwFpEDSaL+AAAsj Subject: [FFmpeg-devel] [PATCH] lavfi/cas: fix the wrong source linesize 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: Zhong Li MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Zhong Li --- libavfilter/vf_cas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_cas.c b/libavfilter/vf_cas.c index 7c32ed5f9b..b44a100421 100644 --- a/libavfilter/vf_cas.c +++ b/libavfilter/vf_cas.c @@ -65,7 +65,7 @@ static int cas_slice8(AVFilterContext *avctx, void *arg, int jobnr, int nb_jobs) const uint8_t *src = in->data[p]; if (!((1 << p) & s->planes)) { - av_image_copy_plane(dst, linesize, src + slice_start * linesize, in_linesize, + av_image_copy_plane(dst, linesize, src + slice_start * in_linesize, in_linesize, w, slice_end - slice_start); continue; }