From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 19FAE4521C for ; Thu, 11 Jul 2024 09:49:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 96B2868DAE8; Thu, 11 Jul 2024 12:49:45 +0300 (EEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8464768DA3D for ; Thu, 11 Jul 2024 12:49:38 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D4A7560003 for ; Thu, 11 Jul 2024 09:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720691378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LQkc5R8eMDN/12nRW5vFFXKUJdZJIPq0TsMWmUwSAZc=; b=IyqnUandetfm7Ar0caAhe42h9qLFCk5ngv+LvFrpxLuHzT+shUnoRM4SysjHhBGeUbsjWA vmrfjzisLQ3AnmiXxTtpUP5OzlCayz/jl9AM9o0gHNbDdUPjX2PgzGDinK0KMshyQpEGxL gugT66rKfVgh0/ALfetb52hO9YnrvnKwm8ZGrIEbgVUsiep1bJe6BOXRgxuoAf8+PqDhUH M8Z+d2MKdQJDoi3e3UiUgIT0YTmayhHwCDfbVdpkvtcKelox1T9qAQdw2Xxs1N4gp8p+k1 g58lW6gxv/cdEyuV3WsNG2cOyXaxT6NpWtfGJ/1+1q15Xy+KQCkRo9sPovmwWA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 11 Jul 2024 11:49:37 +0200 Message-ID: <20240711094937.696960-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avformat/avio: avio_tell() only errors if the context is NULL 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Found by code review related to coverity Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/avio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index ebf611187dc..3be91e4b8a7 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -489,7 +489,7 @@ int64_t avio_skip(AVIOContext *s, int64_t offset); /** * ftell() equivalent for AVIOContext. - * @return position or AVERROR. + * @return position or AVERROR in case s is NULL. */ static av_always_inline int64_t avio_tell(AVIOContext *s) { -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".