From patchwork Mon Dec 27 00:26:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 32925 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp9884840iog; Sun, 26 Dec 2021 16:27:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRgO8Ad2rcOCbZ/okH2kiaRUtNo2H+PtwAvhELtbl/3D9Ts5D2/8XQfUTNnGVoSMuOkhA6 X-Received: by 2002:a17:907:e8c:: with SMTP id ho12mr12169272ejc.689.1640564830234; Sun, 26 Dec 2021 16:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640564830; cv=none; d=google.com; s=arc-20160816; b=qgs8ai0Yv0WLn9wEdGIEffLis7zYLzI7fhtIAmDYfUrBKUyhVF2RU0DdtiAh3hE7tq nSAQ4yEgcVhxLXEKBHEpc+sOnKSkOEmN/WW10K6SKcYOy3ibySEBhTg4d8iO+VgKxtcZ oCkfIhPcKDSiuDAOwI40kb8JKyyGjde7XT/bV3bi7AJcjjD+3ts/4TXjr9wApE1My5Zq caDdo7TQgGhkSLYBiDbW+dM1UFY0Ye1m7/JfnyIx9093P+Qlw9e8YliY1vsmhknUGNGl pHvM7hKkdWtWDvTvaB4fKI+af5hgz619YKZWVz+d6Hd7oBTAcEWechY7smIoxy38KiWx SN9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=gkcsZl9ECsStwl6B0vD/xaiDb51uk/cXpxIvgrrUl80=; b=GGchuTf3ucVeGAf9wM6FNWcpRvYq9MGx5VDmk314pSAGcievOqHxgFRV8OD4QchncF RuoafF78YuhKU0RqdqUUG2FzmR9Y5ev5f1Sg34ID8MC2eKNyDfdKkGN6Vh37DR7eIeOJ /O4Tbl7eD10WStNdeNp3uX81jmJRtwZDtcsFB044439zU8hJJPTQ1GXeONKuM9H544Ye MYtJjfFTidLGyNX1Hu4Cejd78wNTUCfemTdqgRY+SNuep18+jW0Mt3NkiPOICy6UpBz9 n7l2RtQAAsGpMqy6LCCiTLwxeLSvaUnGXPsPZWyXMRK/Py9AC9lsp1u4QacP3edymhbv 5XNQ== 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 hc14si6406925ejc.365.2021.12.26.16.27.09; Sun, 26 Dec 2021 16:27:10 -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 ED49E68B118; Mon, 27 Dec 2021 02:26:41 +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 9009468A8E7 for ; Mon, 27 Dec 2021 02:26:35 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 1FE01E663D; Mon, 27 Dec 2021 01:26: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 1izIfslnbL9V; Mon, 27 Dec 2021 01:26:34 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id ED58DE6631; Mon, 27 Dec 2021 01:26:33 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Mon, 27 Dec 2021 01:26:13 +0100 Message-Id: <20211227002613.25069-5-cus@passwd.hu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211227002613.25069-1-cus@passwd.hu> References: <20211227002613.25069-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/5] avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data 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 Cc: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: oH+UacuyLBJV Signed-off-by: Marton Balint --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index a78797ef57..23e81bda9d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2085,7 +2085,7 @@ int ff_format_shift_data(AVFormatContext *s, int64_t read_start, int shift_size) avio_write(s->pb, read_buf[read_buf_id], n); pos += n; } while (pos < pos_end); - ff_format_io_close(s, &read_pb); + ret = ff_format_io_close(s, &read_pb); end: av_free(buf);