From patchwork Thu May 16 09:33:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Sayers X-Patchwork-Id: 48911 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp2115481pzb; Thu, 16 May 2024 02:35:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX5F27T+Cootq4ZCI5+XH+VNcLzJ6fgQCHNeWRS8IWh9dIW0fbJjwM+3RfcBkhcyV/jZKuXrC7bklI++npzGYancQsN24XgCA1Veg== X-Google-Smtp-Source: AGHT+IFt824fZJ4g+0/d3u3pQ4WxDB9GMVtOj95ru8hNsZ4s2p4prSPiXBUMSyFXXK8pp7qptjf4 X-Received: by 2002:a17:906:2683:b0:a5c:e1dd:3dfd with SMTP id a640c23a62f3a-a5ce1dd3e7emr135193666b.46.1715852113776; Thu, 16 May 2024 02:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715852113; cv=none; d=google.com; s=arc-20160816; b=dGramJYIlA4XV0VW5vYZZphyPPf0+RL10Pwd0Y/1M6DhlFs6slqSfdFcNzEdaNmu98 YZywttuYgLSGmpyRnKCxzHOq9L+q7TpTbYU0bVNAbn6FO/47CnuVhbLFNRjlbzatQVU8 HejfyJHdaa1gEsFlvaZ9vaaiSJoEux9JsmOOV8FOV/AWMUn451jXc4kCjtgKVzFttdTv CD4DfmGYrtrO46KX84dv5hsm3ZBkTNywDE51k7QYqrk3H/+R9iBe918p+HgyRYqheQ14 vm7qTRs7SM7bd0uduf2Z65OeEqtHfwDPNcVUy84ukc47sQaXj6ESfc0VPKi4JXJpqUvQ onmA== 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=vytSkXgj0n8UJSE4ZFNfsHQ7zIl9qrwkbckikQFe58zO53KajM4Qg3MO7V1ltBgKVA FYmCrZgeBfFhCuCPIb0G+yWbwS2SCejaAPPMGb1igQkxx0Q8cy4psi4KRBD+5dLhJeMZ tRTfYtpDITOWWEeHc/KIzPQeatbGm/peiYsOfCU8jmeXJM3efgnk8Xh0wiuoMVLmou1e 8g5IggWLEuig/tRJ2cpcbKvfzUpUJo2Mwctv6VnqGFCDuDDldd4FrWZrui8S1anOTbbB OmWUylVnBaKB0zkRU/I+diWL/UuWTF+EJ61+uQpMit/fDB1CSJeu74Z1M4di1e30rYHA vqkQ==; 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 a640c23a62f3a-a5a17b21a2fsi838741666b.476.2024.05.16.02.35.13; Thu, 16 May 2024 02:35:13 -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 E9D9868D5A4; Thu, 16 May 2024 12:34:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from b-painless.mh.aa.net.uk (b-painless.mh.aa.net.uk [81.187.30.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3BB3A68D47E for ; Thu, 16 May 2024 12:34:07 +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-b.tch.aa.net.uk with esmtp (Exim 4.96) (envelope-from ) id 1s7XV0-002QR7-1W; Thu, 16 May 2024 10:34:06 +0100 From: Andrew Sayers To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 May 2024 10:33:38 +0100 Message-ID: <20240516093403.3763258-6-ffmpeg-devel@pileofstuff.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240516093403.3763258-1-ffmpeg-devel@pileofstuff.org> References: <94b3be81-0777-fbc1-8ba8-a39a8f6397d4@passwd.hu> <20240516093403.3763258-1-ffmpeg-devel@pileofstuff.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 5/5] 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: Fo8J6661uUEA --- 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);