From patchwork Fri Jun 7 22:32:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 13458 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 DD436447298 for ; Sat, 8 Jun 2019 01:58:33 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BE2BF68AA22; Sat, 8 Jun 2019 01:58:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F07D968A9AA for ; Sat, 8 Jun 2019 01:58:26 +0300 (EEST) Received: by mail-oi1-f196.google.com with SMTP id y6so2564255oix.2 for ; Fri, 07 Jun 2019 15:58:26 -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=Eic1KmqrzMRPWjqm8WqVohtxVIj0SUK73xH4sSYTprg=; b=JJVZ1CT9RN0nDVSg3aDB3og8/Zs2BhiSfRH0bKJ6MjijGa1b53wnzm69A9mPGzMQST cYpqK9SpGMMeQRXeGqu8fyNa/X8Fx+nOj3ra8HdvoSiBmAwFHIPAD7khPSQXCpyb8oaW s9UGscGYTAmNmCzQA95/r3/AF1Lmgk5ISq97QxCXtShaKFHrAQIQg4vu+md+iujl0MJH 3XZixIO6GnCwMUU7xSi6wc2icq5IJOE5pLCV7mjxC1yo5QslOo///nENfzviLVpN3FEK 8bWtC2OIaazSuzdrj4XGV+Z8Nscws8Qlg7MQKUgo2CC4NNVZjkn8raeO7GehKdfZXLY/ Hpug== 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=Eic1KmqrzMRPWjqm8WqVohtxVIj0SUK73xH4sSYTprg=; b=WCdAcxE2z2WQm3nPa3OKtiXvHCzWjfHUTPDR4/1zLzMOSKxwg/mDHBSeyJzpcapGgV TF2zNfXULzFVbOwzdH6c4CGpUf6IPWT+j0AdF/HtMfuk0i9vbiBeqPteDyQaYD18DFi1 zTKcF0avj5jGI+6rUw7hnsggVJPNYb1UpTykXpGWwmXmg3LuTo6Io/mxsb5K6I7wWyNb dBWtiOrhFVu/DUIdhvnk8cHwDh6xa4w84oQFiF0gd7A6kw29El92C36KfgO2fCqLvxxV 8tdjLMOqiqNHmbaqk8VsWaHuf1QKrmkfAtTsBefDackA/rvJv1X2Oj0Kznjh7oIB3p+9 R9qg== X-Gm-Message-State: APjAAAXOXMR+up1el5Pi1qaxKfP8E/KvpDjoKFJNxRVuHcKZJKM9qgPA 8vklyoekkmVSWXpQOOpINxAdg5S4/lg= X-Google-Smtp-Source: APXvYqwwsIoYSCJxbWn/hclaFTyX0CXays9jbDHdtk0UR8Bj17PB8iSyM5rRWJcw8VWCx5zRuJ/53Q== X-Received: by 2002:a65:56c5:: with SMTP id w5mr4993077pgs.434.1559946770255; Fri, 07 Jun 2019 15:32:50 -0700 (PDT) Received: from localhost.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id c10sm2745109pjq.14.2019.06.07.15.32.48 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Jun 2019 15:32:49 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Jun 2019 06:32:38 +0800 Message-Id: <1559946758-39636-1-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <20190606083056.10791-1-lance.lmwang@gmail.com> References: <20190606083056.10791-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v2] libavfilter/vf_cover_rect.c: free the allocated frame 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_cover_rect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index 41cd1a1..ac0f684 100644 --- a/libavfilter/vf_cover_rect.c +++ b/libavfilter/vf_cover_rect.c @@ -197,7 +197,7 @@ static av_cold void uninit(AVFilterContext *ctx) CoverContext *cover = ctx->priv; if (cover->cover_frame) - av_freep(&cover->cover_frame->data[0]); + av_frame_free(&cover->cover_frame); } static av_cold int init(AVFilterContext *ctx)