[FFmpeg-devel] [PATCH 4/4] Document url_filesize().

Martin Storsjö martin
Thu Sep 30 11:43:07 CEST 2010


On Thu, 30 Sep 2010, Stefano Sabatini wrote:

> ---
>  libavformat/avio.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/avio.h b/libavformat/avio.h
> index 34437bc..0278d8d 100644
> --- a/libavformat/avio.h
> +++ b/libavformat/avio.h
> @@ -184,6 +184,10 @@ int url_close(URLContext *h);
>   */
>  int url_exist(const char *url);
>  
> +/**
> + * Return the filesize of the resources accessed by h, or a negative
> + * value corresponding to an AVERROR error code in case of failure.
> + */
>  int64_t url_filesize(URLContext *h);

Instead of just "in case of failure", isn't that also returned where it 
simply isn't known (even if there is no failure)?

// Martin



More information about the ffmpeg-devel mailing list