[FFmpeg-devel] [PATCH] avformat/avio: avio_tell() only errors if the context is NULL
Michael Niedermayer
michael at niedermayer.cc
Thu Jul 11 12:49:37 EEST 2024
Found by code review related to coverity
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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
More information about the ffmpeg-devel
mailing list