From patchwork Thu Sep 20 14:53:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Arthur X-Patchwork-Id: 10420 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp2024807jap; Thu, 20 Sep 2018 07:53:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawZe+fXG0bTp6VHalSvau112EQOKmglAguITpf4Gf/0lIi9SDwpXYWN8+5x1Ah40AvyIzB X-Received: by 2002:a5d:610b:: with SMTP id v11-v6mr8861644wrt.265.1537455214479; Thu, 20 Sep 2018 07:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537455214; cv=none; d=google.com; s=arc-20160816; b=aXMTN8pgyHOqvGtpzCrGxGhhPdcCn0s7LYzAJRIKEfzLHaZTbHkGP2rggDC/ln1skG ZSWJ7B3SLOJ+ecwNEMMpLeQleJ7iU1jFshqCxgONPdDCfsG2e4/4RxgDerxZf88RJdDj v906sWJN0x34TS5ewFYm07prbpcVwoBeEIx4umxplAKVWXd8ktPZ+TEAJDHpFFTaWllY +WsIr6GhCFExuGfrQayWm9RW5zQvbRG3xfyUPnQoWtUneXAGXggCQImqByylENQbY0od nX+hBe+j+pqdJZ+wbyrBRATnAnG+uhru11FpvXLzhphg7bhMQHrKlnOm7EFizO7h7Hls 034Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to; bh=3tmQse0+kbcj9TmR+ZlEt1jhFMue+HGVjbg8lZ9Di3Y=; b=oWlgrhbqwfrAD3OFi238sy2XfnGTgAKUVVudhhS2VsTXwGHAvLFEfBTkY268lOmS9r FwIBIexKXnVOSWVEZUa7rt8qZ03IRMbKxoF8V4XLDLFyG7ax4VmH5Jd8wcYVs/9F3MrJ UeNnaAEcPRy/6IZWpnDqKex2P728iqRsf+QO7fOLAtk4rmrb6gHWGa+sEmg+xc+gpt6C i7EgZJqOvyIGBxZ3s/CJA5NpCh3nsy6vo24Ly4RlY4nhtySFHZCMJCeqeB+WbfQrXDKz VKYzO5ohlMhQG1TDuYwd1truCG6kZcr1aw+ciaSEJXLo9yw/WVIss/XaYhbYrHho5FhN txLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=eIr4kXDM; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r16-v6si2294885wrr.366.2018.09.20.07.53.33; Thu, 20 Sep 2018 07:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=eIr4kXDM; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1790268A74B; Thu, 20 Sep 2018 17:53:18 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AA67068A65D for ; Thu, 20 Sep 2018 17:53:11 +0300 (EEST) Received: by mail-it0-f46.google.com with SMTP id h23-v6so12682502ita.5 for ; Thu, 20 Sep 2018 07:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=jZA/MVjp5swFFBRqtDjnTAPxP6wGXZCl6/Kx49FkFDc=; b=eIr4kXDMwDnUz8uaDEUameiDwUVhvDtSgdrV4LiM+YwM+nP0J/cXHSD2ThYqX9fbq+ ody3BOsT/BjQapv2jz/g0r8kbr5sjq7/+T8XWs910fwvMm6QrxEDVq9tgc0GkvYQku3s UHuGGVo9BHoBvnPCOaeShQidJWxHAz6VbicEhg+zJfwxtt0okPoSVr2+BHNQuR+1KiuX Sas3DDG4qmDPDlB6WHxI1cEjfvoF/arzmSKdw0+5mKMVhZ9Y28plGJ4FN68O5k30vQSp c12w0mwkdrWmODIS5lO85cHY2vUGw14UzjeJTgLAOdaCCawpABhyoO7iarpDjazZpZWK gIgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jZA/MVjp5swFFBRqtDjnTAPxP6wGXZCl6/Kx49FkFDc=; b=TW2Rh8ZUUA17kiuSa7jn/ATYdqv47/2bPGzjuZzI4SrQNepnkF5JvCeFqNGQ/LwVo1 sXXc8IZpXf9hutm4UtCdUvkIKCP530C1fMmQKcuV6J66posDmo1T36xB+WoOoKpxJQlX 25/XcPvVQ7vFLeGOgTm8tKxv8qEIiu0FWh6yd8eu3+Kr1Rgvl3Hv+XTUC2vHNiOHk1xp mNLb3QEr2rmvHfiXxa1Hu+LYpsmnUTn/rhYjsxDNb/Cqm0BhT3JkaJyv7G0e5EqxM51l tJ/FrU1TB2H9oJFbkti2dUwl+3ZSezAQxJ0ZOb8zM/PIoIXNekpmwQiYz/cl+Pyu4UYE H3BQ== X-Gm-Message-State: APzg51BKnTEO2Laivlu4EXIwdTdQW4FqNCxlc830SznST9uxLs7RzEJa RPPs+H9QXDgQeU/Tu/Mu17C3LdawAAq9AeG0CqFiUFh+lbc= X-Received: by 2002:a24:c4d7:: with SMTP id v206-v6mr2608964itf.106.1537455203720; Thu, 20 Sep 2018 07:53:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:1d95:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 07:53:22 -0700 (PDT) From: Pedro Arthur Date: Thu, 20 Sep 2018 11:53:22 -0300 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH] avfilter/vf_sr: Fix coverity CID 1439584 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi, This patch fixes coverity CID 1439584. From a724bece3c18df551f874673c268aa01702b4576 Mon Sep 17 00:00:00 2001 From: Pedro Arthur Date: Thu, 20 Sep 2018 11:48:20 -0300 Subject: [PATCH] avfilter/vf_sr: Fix coverity CID 1439584 --- libavfilter/vf_sr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index c1ae6c5ff2..077ccc799c 100644 --- a/libavfilter/vf_sr.c +++ b/libavfilter/vf_sr.c @@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) return AVERROR(EIO); } - sws_scale(sr_context->sws_contexts[2], (const uint8_t **)(&sr_context->output.data), + sws_scale(sr_context->sws_contexts[2], (const uint8_t *[4]){(const uint8_t *)sr_context->output.data, 0, 0, 0}, (const int[4]){sr_context->sws_output_linesize, 0, 0, 0}, 0, out->height, (uint8_t * const*)out->data, out->linesize); -- 2.17.1