[FFmpeg-devel] [PATCH] lavf/avio.h: doxygen avio_flush()

Michael Niedermayer michaelni at gmx.at
Wed Aug 15 16:31:55 CEST 2012


On Wed, Aug 15, 2012 at 11:14:39AM +0200, Stefano Sabatini wrote:
> On date Wednesday 2012-08-15 11:09:52 +0200, Stefano Sabatini encoded:
> > ---
> >  libavformat/avio.h |    7 ++++++-
> >  1 files changed, 6 insertions(+), 1 deletions(-)
> > 
> > diff --git a/libavformat/avio.h b/libavformat/avio.h
> > index cd40f78..ccf2f42 100644
> > --- a/libavformat/avio.h
> > +++ b/libavformat/avio.h
> > @@ -259,9 +259,14 @@ int url_feof(AVIOContext *s);
> >  /** @warning currently size is limited */
> >  int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3);
> >  
> > +/**
> > + * Force flushing of buffered data to the output s.
> > + *
> > + * Force the buffered data to be immediately written to the output,
> > + * without to wait to fill the internal buffer.
> > + */
> >  void avio_flush(AVIOContext *s);  
> 
> BTW, I noticed that avio_close() doesn't call avio_flush() (so I need
> to explicitly specify it).
>

> Is there any reason for that, should I force flush before closing?

sounds like a reasonabel thing to do

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120815/66e7eed9/attachment.asc>


More information about the ffmpeg-devel mailing list