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

Stefano Sabatini stefano.sabatini-lala
Thu Sep 30 12:16:49 CEST 2010


On date Thursday 2010-09-30 12:43:07 +0300, Martin Storsj? encoded:
> 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)?

Yes, it depends on what you intend by "in case of failure". New patch
should be more clear.

Regards.
-- 
FFmpeg = Faithful Freak Multimedia Powerful Elitist Goblin



More information about the ffmpeg-devel mailing list