From patchwork Fri Apr 19 19:08:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Sayers X-Patchwork-Id: 48180 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c906:b0:1a9:af23:56c1 with SMTP id gx6csp837158pzb; Fri, 19 Apr 2024 12:08:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXLqU7zZIBtjbdS7Nzy762cH+Yt2cOc2URkCzAR8tw0/W+YxGY9HApM94gUJVGB5OYIBBogekakuLkr+RD2vJsG+PBeXjAkI0tSoA== X-Google-Smtp-Source: AGHT+IF07lcyQDbH51N9pvgVWZ6BVOYnBBl0fpkCHX9FKeDNIEKtrizGlCIS9excOxRSvvSJnGGj X-Received: by 2002:a05:6512:752:b0:519:23ee:536 with SMTP id c18-20020a056512075200b0051923ee0536mr1780059lfs.9.1713553713564; Fri, 19 Apr 2024 12:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713553713; cv=none; d=google.com; s=arc-20160816; b=h67Wlpwe8aln/+GoPuyGnnvV5a0J4zkK+rg9VoWVCHLXR0uQOfgt6zOX8K/QJ3kKLd NgzZFaqex+f2pKI/ATSR8ohGUnjvcOYgvVBNlo1rURxOD6yjyNG+2TH4h9UPlEEm9xGL Txikcqf0hjAUjB64XIxp2o3XjSiJJAGcBkbczXdG8GWDycfuUES/p10biasg3o9Y/xC+ 244YZh6Nb2zMNvkf13N5eqd/QrnP4NOpYNZOv3AldbCGqlNc+5zvmygraX0z9R/h3z6E zSwtguUVaxS0UdUeAI1CP9Pr6WyWrCRdAj0l9D4ZfZEJRQSxTeSuKqCbd/JnhYF+Q+94 rWKg== 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=qITpzMlyulSxfW28gOqD8EaAWmZ17M8LWriM3gyOPik=; fh=73ExZnkQ8FYbu/qeQNmI0dtHCfShNh8/NmZJs1umltM=; b=eVL8WLLtq1BGrewUSUX+sQ59DRmFGW4NWEpaooxqOgkNIhr/YTjEagOJ6MbSR1LlPd Xj+03LHrldiNw7x623vDPfiQOxU9l/PrBSZz+TUfDNKg3vaLBxBlAAalaEvxqLQ1VuhA 0fSwdKq7E4BG4f4Mt1dH2QuL6hfqUBTmUtEHw8wR1ttnFL/ft63ScH2gyWb/IRQBCjQf BlK+oZoptesd9zYsd9+vIkYEZ5Cc7328cn0TtRWeX6oJv7hq0z1fUtmeA/A8AXa7Iyzi Y2TgZJ1m5rYJgdIyyeDuXFFmrs5pubHCq+gdcBAnc2ec7JDGd1E33D5twg8aOGQsOMq3 Q+YA==; dara=google.com 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 b17-20020a056512305100b0051a9a7a26c4si923101lfb.59.2024.04.19.12.08.32; Fri, 19 Apr 2024 12:08:33 -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; 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 EE44768D435; Fri, 19 Apr 2024 22:08:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from alt2.a-painless.mh.aa.net.uk (alt2.a-painless.mh.aa.net.uk [81.187.30.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 848C368D39F for ; Fri, 19 Apr 2024 22:08:04 +0300 (EEST) Received: from 0.b.4.b.7.4.0.8.c.4.a.5.d.8.b.2.0.5.8.0.9.1.8.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:819:850:2b8d:5a4c:8047:b4b0] helo=andrews-2024-laptop.lan) by painless-a.thn.aa.net.uk with esmtp (Exim 4.96) (envelope-from ) id 1rxtae-005Tu2-1H; Fri, 19 Apr 2024 20:08:04 +0100 From: Andrew Sayers To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Apr 2024 20:08:01 +0100 Message-ID: <20240419190801.169291-3-ffmpeg-devel@pileofstuff.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240419190801.169291-1-ffmpeg-devel@pileofstuff.org> References: <819f684d-8a72-465d-ab22-3eef5bc3468b@gmail.com> <20240419190801.169291-1-ffmpeg-devel@pileofstuff.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 3/3] avformat/avformat: Document return codes for av_format_(de)init 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: Andrew Sayers Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: aDjJaIe5e5BA --- libavformat/avformat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 8afdcd9fd0..f624fb1e2e 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1944,12 +1944,16 @@ const char *avformat_license(void); * This function will be deprecated once support for older GnuTLS and * OpenSSL libraries is removed, and this function has no purpose * anymore. + * + * @return 0 for success or AVERROR code */ int avformat_network_init(void); /** * Undo the initialization done by avformat_network_init. Call it only * once for each time you called avformat_network_init. + * + * @return 0 for success or AVERROR code */ int avformat_network_deinit(void);