From patchwork Mon Nov 29 00:59:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 31792 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp5463699iob; Sun, 28 Nov 2021 17:00:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnh++3cpRfQoqizJfm3iQhrPZnY/tMAXNVNM4JyXI5e1XYDF2mYkLhdWCVqTIc/9+Gq+ZF X-Received: by 2002:a05:6402:1d50:: with SMTP id dz16mr69051866edb.385.1638147614354; Sun, 28 Nov 2021 17:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638147614; cv=none; d=google.com; s=arc-20160816; b=JRorpUgni+uSjAsvUMrbOwUpMnz1+wt9VB/zUc3oj31/8RJZ46NcAkoftopO/0nEG9 TvT4vsCXbFRxVgUriG+yzj1X3ArLQWlo6KyGHGUavTluA1PZGpXX5zb38V2WyzfRKdIV uzw/i/DwL5kSdNo2lypa2KOzvKWJIWCofezI/aBKaZX9if81lVkJHKLrOizzmx8ls9oT Q0SZa349LrgaNbfyvpl/bzV0tRsbIbdRjOi1wVGRyharMtWCR8XhhWqYrhlD8+Ma58hV GO1Z2VWSRgRMiMBLrT9ctJDoS7IcWTBxf+NR/+rJrQqojmDP7iwgHR6+hQhhZP5Y3rP6 yw2g== 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=O35EHcMycBgTxWAwjzdyfs0MAetxynlRUrtoY4Dv/XI=; b=j7Qk02Gc9+t50uWrg0J31HOwaaUTwmty/jBtCpeGjSIU9tfKKPkcUHyLZokRRjlvgp eqp7c6EwTP1T287WpqSt/oM3wthqQn3sdWslenBDRv1aRmovj33CIl+M60sAfTE2jyDA OPEsGnTmYkSiIztwDFFU45Cpe5UkkCTsvsq5D/u0ng+5/cYCxXtIqlBYwyoAakCuQDB3 BsIWaFZ9jl8nnIuFFdWMg7lg5UiY6JxbQ4Ccdkw5afTaMSwvLoTTH0I01242nZdNnmlr PEGUCyYdyzZ6KnyVeMpUWlYd0PdoiLh/Ij5aTZ88b/Zn8cAbYFqfv0j7Egy44FaPsU9l qg4A== 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 k23si20325456edk.555.2021.11.28.17.00.13; Sun, 28 Nov 2021 17:00:14 -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 C214868AE33; Mon, 29 Nov 2021 02:59:44 +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 9E12168ACC3 for ; Mon, 29 Nov 2021 02:59:35 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 1AD05E44A4 for ; Mon, 29 Nov 2021 01:59:35 +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 MBPkrxg1Z5PI for ; Mon, 29 Nov 2021 01:59:33 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 27EA9E6425 for ; Mon, 29 Nov 2021 01:59:31 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Nov 2021 01:59:29 +0100 Message-Id: <20211129005930.7188-4-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 4/5] avformat/mxfdec: do not ignore mxf_read_strong_ref_array return value when reading sub descriptors 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: 9blsSU8v1KDh Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index e0a52e3883..229c02a85e 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1419,7 +1419,7 @@ static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int } if (IS_KLV_KEY(uid, mxf_sub_descriptor)) - mxf_read_strong_ref_array(pb, &descriptor->sub_descriptors_refs, &descriptor->sub_descriptors_count); + return mxf_read_strong_ref_array(pb, &descriptor->sub_descriptors_refs, &descriptor->sub_descriptors_count); break; }