From patchwork Mon Nov 29 00:59:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 31788 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp5463154iob; Sun, 28 Nov 2021 16:59:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC7sHXUTmzDWvOIlYICk0wckR38rQGm4U70z2FiNY2XwenyRFonUahSbRsUq3dFBQjK3GT X-Received: by 2002:a05:6402:40d2:: with SMTP id z18mr69651105edb.395.1638147582656; Sun, 28 Nov 2021 16:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638147582; cv=none; d=google.com; s=arc-20160816; b=MbiLovoO+8QW8NqUDYrWm53pmeYGWNbHK3yR31/ZXpCxdqwz+ZHhI1uBZk8qBhNnM6 OPM4RjcIXd1fD5u+x8YnAvUPt4cOTZjWBjpdg1VIFT1DIQ6g6z3+WGrmYp0yCICmYNQ5 VwrdHLph1S8CE3zWS9c6rMeQZaQzZEb3RxaZ4JEnJV2RUQGqn3FKxFW+34UT+ixoc19G RbOD8I/0g+zI7w7VQ2I/fyU94gnju9tCe1OplkBC+2HlrbupHkMKHXgvsoSvIge8IxT5 91+yepzKDf8hONZksguwcxY/vP9kUskwuE58mpINQzRxeIfGnCgZO7RZMr2UFgbq5eXW 12mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=W2FQhdUhvjzSnPC7SzTdxuleAUj8fW1tK5711Bv7myk=; b=0jpYBq41a0qGIYoV1dHPZB4v56KfwKeds26uavRkjqp7guXyvGx3HlyoXs+Zg04pzA 8x8FqEwPUdRgj5kPJE7RYRZddWXmqmIG8A4amKSi2bN8xmHBRhezbfuvzprQk1JV8/7w pI3navIRSxIneqc/xFBQVybl72A/voBhAA6D+OSZSevoCkmLuvGkLP1ClPrnHyteyukc evGRmL64EE9xxjBHuytsl3Rio+Q1Gmh4OzmsiURdNPUl+t3vyZa81qJinUKBa2R42Qnh sAcb3LBv++hgxEC5Eylj6pb5pEP2hps3PXbnmrMxRoFv9Kjycs/OutTOEwubqm5Rr1ne Y4ZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ho42si29660765ejc.50.2021.11.28.16.59.42; Sun, 28 Nov 2021 16:59:42 -0800 (PST) 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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B872768AD50; Mon, 29 Nov 2021 02:59:39 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C2D23680C04 for ; Mon, 29 Nov 2021 02:59:32 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 421A7E6427 for ; Mon, 29 Nov 2021 01:59:32 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iuOkYj8wsais for ; Mon, 29 Nov 2021 01:59:31 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id DECDCE6420 for ; Mon, 29 Nov 2021 01:59:30 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Nov 2021 01:59:27 +0100 Message-Id: <20211129005930.7188-2-cus@passwd.hu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211129005930.7188-1-cus@passwd.hu> References: <1b5e45c8-574a-c0d3-cf2-11963ad25cc1@passwd.hu> <20211129005930.7188-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/5] avformat/mxfdec: remove uneeded check before av_freep X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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" X-TUID: Ru7z4a3j6olg Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 58ba330475..8cb66b73c4 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -375,8 +375,7 @@ static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx) av_freep(&((MXFDescriptor *)*ctx)->sub_descriptors_refs); break; case MCASubDescriptor: - if (((MXFMCASubDescriptor *)*ctx)->language) - av_freep(&((MXFMCASubDescriptor *)*ctx)->language); + av_freep(&((MXFMCASubDescriptor *)*ctx)->language); break; case Sequence: av_freep(&((MXFSequence *)*ctx)->structural_components_refs);